Changeset 164234 in webkit


Ignore:
Timestamp:
Feb 17, 2014 11:22:14 AM (10 years ago)
Author:
stavila@adobe.com
Message:

[CSS Regions] Make regions unsplittable
https://bugs.webkit.org/show_bug.cgi?id=128811

Reviewed by David Hyatt.

Source/WebCore:

At the moment, nested regions are not properly fragmented across regions. For the moment,
the regions will become unsplittable elements to avoid slicing. At a later time a proper
fragmentation algorithm should be written, also taking into consideration pagination strut.

Test: fast/regions/unsplittable-nested-region.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::isUnsplittableForPagination):

LayoutTests:

Added test for checking that nested regions are unsplittable.

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r164232 r164234  
     12014-02-17  Radu Stavila  <stavila@adobe.com>
     2
     3        [CSS Regions] Make regions unsplittable
     4        https://bugs.webkit.org/show_bug.cgi?id=128811
     5
     6        Reviewed by David Hyatt.
     7
     8        Added test for checking that nested regions are unsplittable.
     9
     10        * fast/regions/unsplittable-nested-region-expected.html: Added.
     11        * fast/regions/unsplittable-nested-region.html: Added.
     12
    1132014-02-17  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r164232 r164234  
     12014-02-17  Radu Stavila  <stavila@adobe.com>
     2
     3        [CSS Regions] Make regions unsplittable
     4        https://bugs.webkit.org/show_bug.cgi?id=128811
     5
     6        Reviewed by David Hyatt.
     7
     8        At the moment, nested regions are not properly fragmented across regions. For the moment,
     9        the regions will become unsplittable elements to avoid slicing. At a later time a proper
     10        fragmentation algorithm should be written, also taking into consideration pagination strut.
     11
     12        Test: fast/regions/unsplittable-nested-region.html
     13
     14        * rendering/RenderBox.cpp:
     15        (WebCore::RenderBox::isUnsplittableForPagination):
     16
    1172014-02-17  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r164232 r164234  
    44134413bool RenderBox::isUnsplittableForPagination() const
    44144414{
    4415     return isReplaced() || hasUnsplittableScrollingOverflow() || (parent() && isWritingModeRoot());
     4415    return isReplaced() || hasUnsplittableScrollingOverflow() || (parent() && isWritingModeRoot()) || isRenderNamedFlowFragmentContainer();
    44164416}
    44174417
Note: See TracChangeset for help on using the changeset viewer.