Changeset 122770 in webkit


Ignore:
Timestamp:
Jul 16, 2012 3:17:10 PM (12 years ago)
Author:
Simon Fraser
Message:

Fix compositing layers in columns when in paginated mode
https://bugs.webkit.org/show_bug.cgi?id=91425

Reviewed by Dave Hyatt.

Source/WebCore:

Enhance a hack that was added to allow composited layers to
display in columns to work for paginated mode, where the
RenderView is renderer with columns.

Test: compositing/columns/composited-in-paginated.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::updateLayerPosition):

LayoutTests:

Testcase with a composited layer in a paginated document,
that dumps layers.

  • compositing/columns/composited-in-paginated-expected.txt: Added.
  • compositing/columns/composited-in-paginated.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r122769 r122770  
     12012-07-16  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix compositing layers in columns when in paginated mode
     4        https://bugs.webkit.org/show_bug.cgi?id=91425
     5
     6        Reviewed by Dave Hyatt.
     7
     8        Testcase with a composited layer in a paginated document,
     9        that dumps layers.
     10
     11        * compositing/columns/composited-in-paginated-expected.txt: Added.
     12        * compositing/columns/composited-in-paginated.html: Added.
     13
    1142012-07-16  Emil A Eklund  <eae@chromium.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r122769 r122770  
     12012-07-16  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix compositing layers in columns when in paginated mode
     4        https://bugs.webkit.org/show_bug.cgi?id=91425
     5
     6        Reviewed by Dave Hyatt.
     7
     8        Enhance a hack that was added to allow composited layers to
     9        display in columns to work for paginated mode, where the
     10        RenderView is renderer with columns.
     11
     12        Test: compositing/columns/composited-in-paginated.html
     13
     14        * rendering/RenderLayer.cpp:
     15        (WebCore::RenderLayer::updateLayerPosition):
     16
    1172012-07-16  Emil A Eklund  <eae@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r122342 r122770  
    843843            // They won't split across columns properly.
    844844            LayoutSize columnOffset;
    845             parent()->renderer()->adjustForColumns(columnOffset, localPoint);
     845            if (!parent()->renderer()->hasColumns() && parent()->renderer()->isRoot() && renderer()->view()->hasColumns())
     846                renderer()->view()->adjustForColumns(columnOffset, localPoint);
     847            else
     848                parent()->renderer()->adjustForColumns(columnOffset, localPoint);
     849
    846850            localPoint += columnOffset;
    847851        }
Note: See TracChangeset for help on using the changeset viewer.