Changeset 142140 in webkit


Ignore:
Timestamp:
Feb 7, 2013 9:29:30 AM (11 years ago)
Author:
allan.jensen@digia.com
Message:

Scrollbars misplaced with accelerated compositing for overflow scroll
https://bugs.webkit.org/show_bug.cgi?id=108625

Reviewed by Simon Fraser.

Source/WebCore:

Scrollbars require their own layer if overflow scroll is composited,
otherwise the scrollbars would be rendered on the content layer and
not fixed to the viewport.

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::requiresHorizontalScrollbarLayer):
(WebCore::RenderLayerBacking::requiresVerticalScrollbarLayer):
(WebCore::RenderLayerBacking::requiresScrollCornerLayer):

LayoutTests:

Update the results for the one test that explicitly set accelerated compositing for overflow scroll,
and used to have bad results for non-chromium. The new baselines are almost identical to chomium baseline.

  • platform/mac/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt:
  • platform/qt/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r142135 r142140  
     12013-02-07  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        Scrollbars misplaced with accelerated compositing for overflow scroll
     4        https://bugs.webkit.org/show_bug.cgi?id=108625
     5
     6        Reviewed by Simon Fraser.
     7
     8        Update the results for the one test that explicitly set accelerated compositing for overflow scroll,
     9        and used to have bad results for non-chromium. The new baselines are almost identical to chomium baseline.
     10
     11        * platform/mac/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt:
     12        * platform/qt/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt:
     13
    1142013-02-07  Ádám Kallai  <kadam@inf.u-szeged.hu>
    215
  • trunk/LayoutTests/platform/mac/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt

    r141634 r142140  
    1010          (bounds 202.00 202.00)
    1111          (drawsContent 1)
    12           (children 1
     12          (children 4
    1313            (GraphicsLayer
    1414              (position 1.00 1.00)
     
    3030              )
    3131            )
     32            (GraphicsLayer
     33              (position 1.00 186.00)
     34              (bounds 185.00 15.00)
     35              (drawsContent 1)
     36            )
     37            (GraphicsLayer
     38              (position 186.00 1.00)
     39              (bounds 15.00 185.00)
     40              (drawsContent 1)
     41            )
     42            (GraphicsLayer
     43              (position 186.00 186.00)
     44              (bounds 15.00 15.00)
     45              (drawsContent 1)
     46            )
    3247          )
    3348        )
  • trunk/LayoutTests/platform/qt/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt

    r141634 r142140  
    1010          (bounds 202.00 202.00)
    1111          (drawsContent 1)
    12           (children 1
     12          (children 4
    1313            (GraphicsLayer
    1414              (position 1.00 1.00)
     
    3030              )
    3131            )
     32            (GraphicsLayer
     33              (position 1.00 186.00)
     34              (bounds 185.00 15.00)
     35              (drawsContent 1)
     36            )
     37            (GraphicsLayer
     38              (position 186.00 1.00)
     39              (bounds 15.00 185.00)
     40              (drawsContent 1)
     41            )
     42            (GraphicsLayer
     43              (position 186.00 186.00)
     44              (bounds 15.00 15.00)
     45              (drawsContent 1)
     46            )
    3247          )
    3348        )
  • trunk/Source/WebCore/ChangeLog

    r142139 r142140  
     12013-02-07  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        Scrollbars misplaced with accelerated compositing for overflow scroll
     4        https://bugs.webkit.org/show_bug.cgi?id=108625
     5
     6        Reviewed by Simon Fraser.
     7
     8        Scrollbars require their own layer if overflow scroll is composited,
     9        otherwise the scrollbars would be rendered on the content layer and
     10        not fixed to the viewport.
     11
     12        * rendering/RenderLayerBacking.cpp:
     13        (WebCore::RenderLayerBacking::requiresHorizontalScrollbarLayer):
     14        (WebCore::RenderLayerBacking::requiresVerticalScrollbarLayer):
     15        (WebCore::RenderLayerBacking::requiresScrollCornerLayer):
     16
    1172013-02-07  Mike West  <mkwst@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r142012 r142140  
    973973{
    974974#if !PLATFORM(CHROMIUM)
    975     if (!m_owningLayer->hasOverlayScrollbars())
     975    if (!m_owningLayer->hasOverlayScrollbars() && !m_owningLayer->needsCompositedScrolling())
    976976        return false;
    977977#endif
     
    982982{
    983983#if !PLATFORM(CHROMIUM)
    984     if (!m_owningLayer->hasOverlayScrollbars())
     984    if (!m_owningLayer->hasOverlayScrollbars() && !m_owningLayer->needsCompositedScrolling())
    985985        return false;
    986986#endif
     
    991991{
    992992#if !PLATFORM(CHROMIUM)
    993     if (!m_owningLayer->hasOverlayScrollbars())
     993    if (!m_owningLayer->hasOverlayScrollbars() && !m_owningLayer->needsCompositedScrolling())
    994994        return false;
    995995#endif
Note: See TracChangeset for help on using the changeset viewer.