<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>97804</bug_id>
          
          <creation_ts>2012-09-27 11:22:00 -0700</creation_ts>
          <short_desc>[CSS Exclusions] ExclusionShape class should provide a lineOverlapsShapeBounds() method</short_desc>
          <delta_ts>2013-04-11 13:19:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>96811</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hans Muller">giles_joplin</reporter>
          <assigned_to name="Hans Muller">giles_joplin</assigned_to>
          <cc>donggwan.kim</cc>
    
    <cc>zoltan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>729721</commentid>
    <comment_count>0</comment_count>
    <who name="Hans Muller">giles_joplin</who>
    <bug_when>2012-09-27 11:22:00 -0700</bug_when>
    <thetext>It would be more efficient if the ExclusionShape class provided a lineOverlapsShapeBounds() method, than the current approach where ExclusionShapeInsideInfo computes the result by getting the shape&apos;s bounding box:

inline bool ExclusionShapeInsideInfo::lineOverlapsShapeBounds() const
{
    ASSERT(m_shape);
    FloatRect shapeBounds = m_shape-&gt;shapeLogicalBoundingBox();
    return m_lineTop &lt;= shapeBounds.maxY() &amp;&amp; m_lineBottom &gt;= shapeBounds.y();
}

By calling an ExclusionShape() method directly we could avoid allocating a FloatRect and doing the extra internal to logical conversions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874095</commentid>
    <comment_count>1</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2013-04-11 13:19:26 -0700</bug_when>
    <thetext>It has been fixed earlier.

Current function:
http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/ExclusionShapeInfo.h?rev=147384#L99
bool lineOverlapsShapeBounds() const { return logicalLineTop() &lt; shapeLogicalBottom() &amp;&amp; logicalLineBottom() &gt;= shapeLogicalTop(); }</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>