Bug 116406

Summary: Hoist several chunks of code at the top of RenderLayer::paintLayerContents() onto new functions
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, dino, eflews.bot, esprehn+autocc, glenn, gtk-ews, gyuyoung.kim, philn, sam, simon.fraser, thorton, webkit-ews, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch kling: review+

Description Simon Fraser (smfr) 2013-05-18 17:58:31 PDT
Hoist several chunks of code at the top of RenderLayer::paintLayerContents() onto new functions
Comment 1 Simon Fraser (smfr) 2013-05-18 18:04:30 PDT
Created attachment 202224 [details]
Patch
Comment 2 WebKit Commit Bot 2013-05-18 18:06:29 PDT
Attachment 202224 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/rendering/FilterEffectRenderer.cpp', u'Source/WebCore/rendering/FilterEffectRenderer.h', u'Source/WebCore/rendering/RenderLayer.cpp', u'Source/WebCore/rendering/RenderLayer.h']" exit_code: 1
Source/WebCore/ChangeLog:12:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
Source/WebCore/ChangeLog:14:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
Source/WebCore/ChangeLog:15:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
Total errors found: 3 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 EFL EWS Bot 2013-05-18 18:08:27 PDT
Comment on attachment 202224 [details]
Patch

Attachment 202224 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/494832
Comment 4 Early Warning System Bot 2013-05-18 18:09:20 PDT
Comment on attachment 202224 [details]
Patch

Attachment 202224 [details] did not pass qt-ews (qt):
Output: http://webkit-queues.appspot.com/results/493800
Comment 5 EFL EWS Bot 2013-05-18 18:09:56 PDT
Comment on attachment 202224 [details]
Patch

Attachment 202224 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/494833
Comment 6 Early Warning System Bot 2013-05-18 18:11:48 PDT
Comment on attachment 202224 [details]
Patch

Attachment 202224 [details] did not pass qt-wk2-ews (qt-wk2):
Output: http://webkit-queues.appspot.com/results/497538
Comment 7 kov's GTK+ EWS bot 2013-05-18 18:20:21 PDT
Comment on attachment 202224 [details]
Patch

Attachment 202224 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/493804
Comment 8 Build Bot 2013-05-18 18:31:39 PDT
Comment on attachment 202224 [details]
Patch

Attachment 202224 [details] did not pass win-ews (win):
Output: http://webkit-queues.appspot.com/results/486941
Comment 9 Simon Fraser (smfr) 2013-05-18 18:36:05 PDT
Created attachment 202225 [details]
Patch
Comment 10 Early Warning System Bot 2013-05-18 18:41:33 PDT
Comment on attachment 202225 [details]
Patch

Attachment 202225 [details] did not pass qt-wk2-ews (qt-wk2):
Output: http://webkit-queues.appspot.com/results/493810
Comment 11 Early Warning System Bot 2013-05-18 18:41:41 PDT
Comment on attachment 202225 [details]
Patch

Attachment 202225 [details] did not pass qt-ews (qt):
Output: http://webkit-queues.appspot.com/results/490871
Comment 12 Simon Fraser (smfr) 2013-05-18 18:45:28 PDT
Created attachment 202226 [details]
Patch
Comment 13 Andreas Kling 2013-05-18 18:48:01 PDT
Comment on attachment 202226 [details]
Patch

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

r=me.

> Source/WebCore/rendering/RenderLayer.cpp:3691
> +bool RenderLayer::setupFontSubpixelQuantization(GraphicsContext* context, bool &didQuantizeFonts)

& placement.

> Source/WebCore/rendering/RenderLayer.cpp:3725
> +    if (!style)
> +        return false;

This could be an assertion instead; 'style' won't be null if the renderer has a clip path.

> Source/WebCore/rendering/RenderLayer.h:939
> +    bool setupFontSubpixelQuantization(GraphicsContext*, bool &didQuantizeFonts);

& placement.
Comment 14 Simon Fraser (smfr) 2013-05-19 19:26:58 PDT
http://trac.webkit.org/changeset/150349