RESOLVED FIXED 74513
[chromium] Plumb through flag for enabling partial swap
https://bugs.webkit.org/show_bug.cgi?id=74513
Summary [chromium] Plumb through flag for enabling partial swap
Jonathan Backer
Reported 2011-12-14 10:15:02 PST
[chromium] NOT FOR REVIEW Plumb through flag for enabling partial swap
Attachments
Patch (9.15 KB, patch)
2011-12-14 10:16 PST, Jonathan Backer
no flags
Patch (9.13 KB, patch)
2011-12-14 10:56 PST, Jonathan Backer
no flags
Patch (9.72 KB, patch)
2011-12-14 11:10 PST, Jonathan Backer
no flags
Jonathan Backer
Comment 1 2011-12-14 10:16:36 PST
Antoine Labour
Comment 2 2011-12-14 10:48:26 PST
Comment on attachment 119241 [details] Patch LGTM
WebKit Review Bot
Comment 3 2011-12-14 10:51:13 PST
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API.
Jonathan Backer
Comment 4 2011-12-14 10:56:33 PST
James Robinson
Comment 5 2011-12-14 11:00:06 PST
Comment on attachment 119251 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=119251&action=review > Source/WebCore/page/Settings.h:646 > + bool m_partialSwapEnabled : 1; you need to initialize this in the Settings constructor or its value will be undefined and propagate out to the rest of the code.
Jonathan Backer
Comment 6 2011-12-14 11:10:44 PST
James Robinson
Comment 7 2011-12-14 11:41:47 PST
Comment on attachment 119255 [details] Patch R=me
WebKit Review Bot
Comment 8 2011-12-14 13:25:17 PST
Comment on attachment 119255 [details] Patch Clearing flags on attachment: 119255 Committed r102817: <http://trac.webkit.org/changeset/102817>
WebKit Review Bot
Comment 9 2011-12-14 13:25:21 PST
All reviewed patches have been landed. Closing bug.
Simon Fraser (smfr)
Comment 10 2011-12-14 13:46:38 PST
Comment on attachment 119255 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=119255&action=review > Source/WebCore/page/Settings.h:510 > void setPerTileDrawingEnabled(bool enabled) { m_perTileDrawingEnabled = enabled; } > bool perTileDrawingEnabled() const { return m_perTileDrawingEnabled; } > > + void setPartialSwapEnabled(bool enabled) { m_partialSwapEnabled = enabled; } > + bool partialSwapEnabled() const { return m_partialSwapEnabled; } Why is this Chromium-specific stuff not #ifdeffed? You're bloating Settings on all platforms. Also I have no idea what "partial swap" is and whether it applies to my platform.
James Robinson
Comment 11 2011-12-14 14:43:45 PST
We don't have any #if PLATFORM() guards on things in Settings today, even though many of the bits only make sense for a certain platform or set of platforms. We could start, although 1 bit per Page is a pretty darn small cost.
James Robinson
Comment 12 2011-12-14 14:54:19 PST
Actually, I think for this flag we could keep everything out of Settings (by using the chromium WebKit API's WebSettings interface), but if we want to allow layout tests to set this flag via window.internals I think the bit needs to go on WebCore::Settings.
Darin Fisher (:fishd, Google)
Comment 13 2011-12-15 11:30:29 PST
(In reply to comment #12) > Actually, I think for this flag we could keep everything out of Settings (by using the chromium WebKit API's WebSettings interface), but if we want to allow layout tests to set this flag via window.internals I think the bit needs to go on WebCore::Settings. Can't layoutTestController.overridePreference be used for such things? That allows tests to manipulate settings through whatever WebKit API each port provides.
Note You need to log in before you can comment on or make changes to this bug.