Changeset 103630 in webkit


Ignore:
Timestamp:
Dec 23, 2011, 8:56:35 AM (14 years ago)
Author:
Simon Fraser
Message:

Filters should apply to inline elements
https://bugs.webkit.org/show_bug.cgi?id=75152

Source/WebCore:

Reviewed by Darin Adler.

Filters need to cause creation of RenderLayers for inlines, just like
opacity and masks do.

Test: css3/filters/filtered-inline.html

  • rendering/RenderInline.h:

(WebCore::RenderInline::requiresLayer):

  • rendering/RenderTableRow.h: Remove an obviously incorrect comment.

LayoutTests:

Reviewed by Darin Adler.

Test for filter on an inline.

  • css3/filters/filtered-inline-expected.png: Added.
  • css3/filters/filtered-inline-expected.txt: Added.
  • css3/filters/filtered-inline.html: Added.
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r103629 r103630  
     12011-12-23  Simon Fraser  <[email protected]>
     2
     3        Filters should apply to inline elements
     4        https://bugs.webkit.org/show_bug.cgi?id=75152
     5
     6        Reviewed by Darin Adler.
     7       
     8        Test for filter on an inline.
     9
     10        * css3/filters/filtered-inline-expected.png: Added.
     11        * css3/filters/filtered-inline-expected.txt: Added.
     12        * css3/filters/filtered-inline.html: Added.
     13
    1142011-12-23  Jarred Nicholls  <[email protected]>
    215
  • trunk/Source/WebCore/ChangeLog

    r103629 r103630  
     12011-12-23  Simon Fraser  <[email protected]>
     2
     3        Filters should apply to inline elements
     4        https://bugs.webkit.org/show_bug.cgi?id=75152
     5
     6        Reviewed by Darin Adler.
     7       
     8        Filters need to cause creation of RenderLayers for inlines, just like
     9        opacity and masks do.
     10
     11        Test: css3/filters/filtered-inline.html
     12
     13        * rendering/RenderInline.h:
     14        (WebCore::RenderInline::requiresLayer):
     15        * rendering/RenderTableRow.h: Remove an obviously incorrect comment.
     16
    1172011-12-23  Jarred Nicholls  <[email protected]>
    218
  • trunk/Source/WebCore/rendering/RenderInline.h

    r101755 r103630  
    120120    virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset, HitTestAction);
    121121
    122     virtual bool requiresLayer() const { return isRelPositioned() || isTransparent() || hasMask(); }
     122    virtual bool requiresLayer() const { return isRelPositioned() || isTransparent() || hasMask() || hasFilter(); }
    123123
    124124    virtual LayoutUnit offsetLeft() const;
  • trunk/Source/WebCore/rendering/RenderTableRow.h

    r99893 r103630  
    5757    virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset, HitTestAction);
    5858
    59     // The only time rows get a layer is when they have transparency.
    6059    virtual bool requiresLayer() const { return isTransparent() || hasOverflowClip() || hasTransform() || hasMask() || hasFilter(); }
    6160
Note: See TracChangeset for help on using the changeset viewer.