Summary: | re-name LayerChromium border functions to reflect that they are only for debug use | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Shawn Singh <shawnsingh> | ||||||||
Component: | Layout and Rendering | Assignee: | Shawn Singh <shawnsingh> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | enne, jamesr, nduca, piman, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Shawn Singh
2011-09-15 19:31:57 PDT
Created attachment 107589 [details]
Patch
Comment on attachment 107589 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=107589&action=review > Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp:74 > -static void setLayerBorderColor(LayerChromium& layer, const Color& color) > +static void setLayerDebugBorderColor(LayerChromium& layer, const Color& color) > { > - layer.setBorderColor(color); > + layer.setDebugBorderColor(color); > } > > -static void clearBorderColor(LayerChromium& layer) > +static void clearDebugBorderColor(LayerChromium& layer) > { > - layer.setBorderColor(static_cast<RGBA32>(0)); > + layer.setDebugBorderColor(static_cast<RGBA32>(0)); > } I'm really deeply confused about why these functions exist - they seem pretty silly. Why aren't we just calling the functions right on the layers? (In reply to comment #0) > Also re-named the corresponding functions in GraphicsLayerChromium. In fact, is that level of indirection through static functions necessary? I think they shouldn't, IMO. I'm not sure why they are there. Created attachment 107676 [details]
Patch
I also removed the background color static functions. Comment on attachment 107676 [details] Patch Rejecting attachment 107676 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: graphics/chromium/GraphicsLayerChromium.cpp patching file Source/WebCore/platform/graphics/chromium/LayerChromium.cpp Hunk #1 succeeded at 326 (offset -55 lines). patching file Source/WebCore/platform/graphics/chromium/LayerChromium.h Hunk #1 FAILED at 176. 1 out of 1 hunk FAILED -- saving rejects to file Source/WebCore/platform/graphics/chromium/LayerChromium.h.rej Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'James Robinson', u'--f..." exit_code: 1 Full output: http://queues.webkit.org/results/9729267 Created attachment 107805 [details]
Patch
Previous patch had a merge conflict. This patch is essentially the same, made from a more. recent base Comment on attachment 107805 [details] Patch Clearing flags on attachment: 107805 Committed r95406: <http://trac.webkit.org/changeset/95406> All reviewed patches have been landed. Closing bug. |