Changeset 169120 in webkit


Ignore:
Timestamp:
May 20, 2014 10:38:04 AM (10 years ago)
Author:
stavila@adobe.com
Message:

REGRESSION: [CSS Regions] Content flowed directly into the flow thread that ends up in the second region is not properly repainted
https://bugs.webkit.org/show_bug.cgi?id=133111

Reviewed by David Hyatt.

Source/WebCore:
When computing the repaint rect of an element flowed into a flow thread, if the element is flowed directly into
the flow thread (meaning its containing block is the flow thread itself), the region's position within the flow
must no longer be taken into consideration, because its already included in the element's |topLeft|.

Test: fast/regions/hover-element-flowed-second-region.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::computeRectForRepaint):

LayoutTests:
Added test for the correct repaint of an element flowed directly into the second region of a flow thread.

  • fast/regions/hover-element-flowed-second-region-expected.html: Added.
  • fast/regions/hover-element-flowed-second-region.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r169118 r169120  
     12014-05-20  Radu Stavila  <stavila@adobe.com>
     2
     3        REGRESSION: [CSS Regions] Content flowed directly into the flow thread that ends up in the second region is not properly repainted
     4        https://bugs.webkit.org/show_bug.cgi?id=133111
     5
     6        Reviewed by David Hyatt.
     7
     8        Added test for the correct repaint of an element flowed directly into the second region of a flow thread.
     9
     10        * fast/regions/hover-element-flowed-second-region-expected.html: Added.
     11        * fast/regions/hover-element-flowed-second-region.html: Added.
     12
    1132014-05-20  Prashant Hiremath  <hiremathprashants@gmail.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r169119 r169120  
     12014-05-20  Radu Stavila  <stavila@adobe.com>
     2
     3        REGRESSION: [CSS Regions] Content flowed directly into the flow thread that ends up in the second region is not properly repainted
     4        https://bugs.webkit.org/show_bug.cgi?id=133111
     5
     6        Reviewed by David Hyatt.
     7
     8        When computing the repaint rect of an element flowed into a flow thread, if the element is flowed directly into
     9        the flow thread (meaning its containing block is the flow thread itself), the region's position within the flow
     10        must no longer be taken into consideration, because its already included in the element's |topLeft|.
     11
     12        Test: fast/regions/hover-element-flowed-second-region.html
     13
     14        * rendering/RenderBox.cpp:
     15        (WebCore::RenderBox::computeRectForRepaint):
     16
    1172014-05-20  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r168993 r169120  
    21412141    // the regions so adding this here and then adding the topLeft again would cause
    21422142    // us to add the height twice.
    2143     if (o->isOutOfFlowRenderFlowThread() && position != AbsolutePosition) {
     2143    // The same logic applies for elements flowed directly into the flow thread. Their topLeft member
     2144    // will already contain the portion rect of the region.
     2145    if (o->isOutOfFlowRenderFlowThread() && position != AbsolutePosition && containingBlock() != flowThreadContainingBlock()) {
    21442146        RenderRegion* firstRegion = nullptr;
    21452147        RenderRegion* lastRegion = nullptr;
Note: See TracChangeset for help on using the changeset viewer.