Changeset 200665 in webkit


Ignore:
Timestamp:
May 10, 2016, 6:55:47 PM (9 years ago)
Author:
Simon Fraser
Message:

Horizontally-scrollable items with a 3d transform are rendered incorrectly in RTL when container has -webkit-overflow-scroll: touch
https://bugs.webkit.org/show_bug.cgi?id=157482
rdar://problem/26204794

Reviewed by Zalan Bujtas.
Source/WebCore:

The compositing code was confused about scroll offsets vs. scroll positions, because
of the badly named scrolledContentOffset(); we used that in one place, and scrollOffset()
lower down. Change both to use scrollOffset().

Test: compositing/rtl/rtl-with-transformed-descendants.html

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::updateGeometry):

LayoutTests:

This can't be a ref test because on iOS ref test snapshots are doing by drawing, not by snapshotting layers.

  • compositing/rtl/rtl-with-transformed-descendants-expected.txt: Added.
  • compositing/rtl/rtl-with-transformed-descendants.html: Added.
Location:
trunk
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r200663 r200665  
     12016-05-10  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Horizontally-scrollable items with a 3d transform are rendered incorrectly in RTL when container has -webkit-overflow-scroll: touch
     4        https://bugs.webkit.org/show_bug.cgi?id=157482
     5        rdar://problem/26204794
     6
     7        Reviewed by Zalan Bujtas.
     8       
     9        This can't be a ref test because on iOS ref test snapshots are doing by drawing, not by snapshotting layers.
     10
     11        * compositing/rtl/rtl-with-transformed-descendants-expected.txt: Added.
     12        * compositing/rtl/rtl-with-transformed-descendants.html: Added.
     13
    1142016-05-10  Hunseop Jeong  <hs85.jeong@samsung.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r200660 r200665  
     12016-05-10  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Horizontally-scrollable items with a 3d transform are rendered incorrectly in RTL when container has -webkit-overflow-scroll: touch
     4        https://bugs.webkit.org/show_bug.cgi?id=157482
     5        rdar://problem/26204794
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        The compositing code was confused about scroll offsets vs. scroll positions, because
     10        of the badly named scrolledContentOffset(); we used that in one place, and scrollOffset()
     11        lower down. Change both to use scrollOffset().
     12
     13        Test: compositing/rtl/rtl-with-transformed-descendants.html
     14
     15        * rendering/RenderLayerBacking.cpp:
     16        (WebCore::RenderLayerBacking::updateGeometry):
     17
    1182016-05-10  Enrica Casucci  <enrica@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r200602 r200665  
    816816            renderBox.height() - renderBox.borderTop() - renderBox.borderBottom());
    817817
    818         IntSize scrollOffset = compAncestor->scrolledContentOffset();
     818        ScrollOffset scrollOffset = compAncestor->scrollOffset();
    819819        // FIXME: pixel snap the padding box.
    820         graphicsLayerParentLocation = paddingBox.location() - scrollOffset;
     820        graphicsLayerParentLocation = paddingBox.location() - toLayoutSize(scrollOffset);
    821821    }
    822822#else
Note: See TracChangeset for help on using the changeset viewer.