⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118612 in webkit


Ignore:
Timestamp:
May 26, 2012, 1:15:56 PM (14 years ago)
Author:
Simon Fraser
Message:

Clip rects assertion when hovering div with transform
https://bugs.webkit.org/show_bug.cgi?id=87580

Source/WebCore:

Reviewed by Eric Seidel.

Hit testing used to use temporary clip rects in composited documents,
until r118562. Now that we cache clip rects for hit testing, we need
to clear the cache on descendant layers when a layer gains or loses
a transform.

Test: fast/layers/clip-rects-assertion.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::updateTransform):

LayoutTests:

Reviewed by Eric Seidel.

Test that changes transform on hover style, testing for clipRect-related
assertions.

  • fast/layers/clip-rects-assertion-expected.txt: Added.
  • fast/layers/clip-rects-assertion.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r118609 r118612  
     12012-05-26  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Clip rects assertion when hovering div with transform
     4        https://bugs.webkit.org/show_bug.cgi?id=87580
     5
     6        Reviewed by Eric Seidel.
     7       
     8        Test that changes transform on hover style, testing for clipRect-related
     9        assertions.
     10
     11        * fast/layers/clip-rects-assertion-expected.txt: Added.
     12        * fast/layers/clip-rects-assertion.html: Added.
     13
    1142012-05-26  Rob Buis  <rwlbuis@webkit.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r118611 r118612  
     12012-05-26  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Clip rects assertion when hovering div with transform
     4        https://bugs.webkit.org/show_bug.cgi?id=87580
     5
     6        Reviewed by Eric Seidel.
     7       
     8        Hit testing used to use temporary clip rects in composited documents,
     9        until r118562. Now that we cache clip rects for hit testing, we need
     10        to clear the cache on descendant layers when a layer gains or loses
     11        a transform.
     12
     13        Test: fast/layers/clip-rects-assertion.html
     14
     15        * rendering/RenderLayer.cpp:
     16        (WebCore::RenderLayer::updateTransform):
     17
    1182012-05-25  Dan Bernstein  <mitz@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r118562 r118612  
    509509        else
    510510            m_transform.clear();
     511       
     512        // Layers with transforms act as clip rects roots, so clear the cached clip rects here.
     513        clearClipRectsIncludingDescendants();
    511514    }
    512515   
Note: See TracChangeset for help on using the changeset viewer.