Changeset 169586 in webkit


Ignore:
Timestamp:
Jun 4, 2014 5:41:27 AM (10 years ago)
Author:
stavila@adobe.com
Message:

REGRESSION: [CSS Regions] Regions with overflow:auto generate scrollbars even if the content flows into the following regions and as such, should not be scrolled
https://bugs.webkit.org/show_bug.cgi?id=133481

Reviewed by Antti Koivisto.

Source/WebCore:
When enlarging the layout overflow of a scrollable region, the portion of the content that flows
in the region must be taken into consideration. If the content continues to flow into the next
region, the layout overflow of the current region must not be enlarged.

Test: fast/regions/scrollable-first-region.html

  • rendering/RenderFlowThread.cpp:

(WebCore::RenderFlowThread::addRegionsOverflowFromChild):

LayoutTests:
Added test for a large item flowed through two regions with the first region having overflow:auto.
The region must NOT scroll.

  • fast/regions/scrollable-first-region-expected.html: Added.
  • fast/regions/scrollable-first-region.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r169585 r169586  
     12014-06-04  Radu Stavila  <stavila@adobe.com>
     2
     3        REGRESSION: [CSS Regions] Regions with overflow:auto generate scrollbars even if the content flows into the following regions and as such, should not be scrolled
     4        https://bugs.webkit.org/show_bug.cgi?id=133481
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Added test for a large item flowed through two regions with the first region having overflow:auto.
     9        The region must NOT scroll.
     10
     11        * fast/regions/scrollable-first-region-expected.html: Added.
     12        * fast/regions/scrollable-first-region.html: Added.
     13
    1142014-06-03  Benjamin Poulain  <benjamin@webkit.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r169585 r169586  
     12014-06-04  Radu Stavila  <stavila@adobe.com>
     2
     3        REGRESSION: [CSS Regions] Regions with overflow:auto generate scrollbars even if the content flows into the following regions and as such, should not be scrolled
     4        https://bugs.webkit.org/show_bug.cgi?id=133481
     5
     6        Reviewed by Antti Koivisto.
     7
     8        When enlarging the layout overflow of a scrollable region, the portion of the content that flows
     9        in the region must be taken into consideration. If the content continues to flow into the next
     10        region, the layout overflow of the current region must not be enlarged.
     11
     12        Test: fast/regions/scrollable-first-region.html
     13
     14        * rendering/RenderFlowThread.cpp:
     15        (WebCore::RenderFlowThread::addRegionsOverflowFromChild):
     16
    1172014-06-03  Benjamin Poulain  <benjamin@webkit.org>
    218
  • trunk/Source/WebCore/rendering/RenderFlowThread.cpp

    r169425 r169586  
    14251425            if (isHorizontalWritingMode()) {
    14261426                if (fragmentContainer.scrollsOverflowY()) {
    1427                     LayoutUnit layoutMaxLogicalY = child->frameRect().maxY() + spacingAfterLayout;
     1427                    LayoutUnit layoutMaxLogicalY = region->rectFlowPortionForBox(child, child->frameRect()).maxY() + spacingAfterLayout;
    14281428                    LayoutUnit maxYDiff = layoutMaxLogicalY - childLayoutOverflowRect.maxY();
    14291429                    if (maxYDiff > 0)
     
    14321432            } else {
    14331433                if (fragmentContainer.scrollsOverflowX()) {
    1434                     LayoutUnit layoutMaxLogicalY = child->frameRect().maxX() + spacingAfterLayout;
     1434                    LayoutUnit layoutMaxLogicalY = region->rectFlowPortionForBox(child, child->frameRect()).maxX() + spacingAfterLayout;
    14351435                    LayoutUnit maxYDiff = layoutMaxLogicalY - childLayoutOverflowRect.maxX();
    14361436                    if (maxYDiff > 0)
Note: See TracChangeset for help on using the changeset viewer.