Bug 142811

Summary: Skip trying to paint overlay scrollbars when there are none or they are clipped out
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, commit-queue, esprehn+autocc, glenn, kondapallykalyan, simon.fraser, zalan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Simon Fraser (smfr) 2015-03-17 22:44:12 PDT
Skip trying to paint overlay scrollbars when there are none or they are clipped out
Comment 1 Simon Fraser (smfr) 2015-03-17 22:45:57 PDT
Created attachment 248912 [details]
Patch
Comment 2 Darin Adler 2015-03-18 08:34:37 PDT
Comment on attachment 248912 [details]
Patch

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

> Source/WebCore/ChangeLog:14
> +        and don't both setting up an empty clip just to paint nothing.

both -> bother

> Source/WebCore/rendering/RenderLayer.cpp:4784
>      for (size_t i = 0; i < layerFragments.size(); ++i) {
>          const LayerFragment& fragment = layerFragments.at(i);

Should use modern for loop.
Comment 3 Simon Fraser (smfr) 2015-03-18 09:23:38 PDT
http://trac.webkit.org/changeset/181695