Bug 103156 - With composited scrolling, content should only appear behind overlay scrollbars
Summary: With composited scrolling, content should only appear behind overlay scrollbars
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: vollick
URL:
Keywords:
Depends on: 94743
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-23 11:20 PST by vollick
Modified: 2017-07-18 08:27 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.10 KB, patch)
2012-11-23 11:25 PST, vollick
buildbot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vollick 2012-11-23 11:20:32 PST
We just need to update the clip of the scrolling layer to exclude the scrollbars when they're not overlay scrollbars.
Comment 1 vollick 2012-11-23 11:25:11 PST
Created attachment 175830 [details]
Patch
Comment 2 Simon Fraser (smfr) 2012-11-23 11:53:18 PST
Comment on attachment 175830 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=175830&action=review

> Source/WebCore/ChangeLog:3
> +        With composited scrolling, content should only appear behind overlay scrollbars

This title is ambiguous. I think you mean "content should appear behind overlay scrollbars".

> Source/WebCore/rendering/RenderLayerBacking.cpp:744
> +        FloatSize clipSize = paddingBox.size();
> +        if (m_layerForHorizontalScrollbar && !m_owningLayer->horizontalScrollbar()->isOverlayScrollbar())
> +            clipSize.setHeight(clipSize.height() - m_layerForHorizontalScrollbar->size().height());
> +        if (m_layerForVerticalScrollbar && !m_owningLayer->verticalScrollbar()->isOverlayScrollbar())
> +            clipSize.setWidth(clipSize.width() - m_layerForVerticalScrollbar->size().width());

I think we have a "width for scrollbar" method somewhere that takes into account whether they are overlay scrollbars.
Comment 3 Build Bot 2012-11-23 12:15:02 PST
Comment on attachment 175830 [details]
Patch

Attachment 175830 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/14975397

New failing tests:
compositing/overflow/clip-composited-content-under-overflow-controls.html
Comment 4 WebKit Review Bot 2012-11-23 14:07:55 PST
Comment on attachment 175830 [details]
Patch

Attachment 175830 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14937845

New failing tests:
platform/chromium/virtual/softwarecompositing/overflow/clip-composited-content-under-overflow-controls.html
compositing/overflow/clip-composited-content-under-overflow-controls.html