Bug 89303 - [chromium] Revert 88384
Summary: [chromium] Revert 88384
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: vollick
URL:
Keywords:
Depends on:
Blocks: 89298
  Show dependency treegraph
 
Reported: 2012-06-17 06:47 PDT by vollick
Modified: 2013-04-09 17:06 PDT (History)
8 users (show)

See Also:


Attachments
Patch (77.40 KB, patch)
2012-06-17 10:11 PDT, vollick
no flags Details | Formatted Diff | Diff
Patch (76.69 KB, patch)
2012-06-17 10:23 PDT, vollick
no flags Details | Formatted Diff | Diff
Patch (76.68 KB, patch)
2012-06-17 11:27 PDT, vollick
no flags Details | Formatted Diff | Diff
Patch (78.34 KB, patch)
2012-07-03 11:49 PDT, vollick
jamesr: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vollick 2012-06-17 06:47:05 PDT
Certain CCSettings were made global to be accessible by a LayerChromium that has not been added to the tree. This is unfortunate and it also turns out to be unnecessary; the setting can be plumbed to GraphicsLayerChromium who can do the check.
Comment 1 vollick 2012-06-17 10:11:32 PDT
Created attachment 148013 [details]
Patch
Comment 2 vollick 2012-06-17 10:23:37 PDT
Created attachment 148014 [details]
Patch
Comment 3 vollick 2012-06-17 11:27:15 PDT
Created attachment 148018 [details]
Patch

Rebasing. Hopefully the new patch will apply cleanly.
Comment 4 WebKit Review Bot 2012-06-17 11:31:13 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 5 vollick 2012-07-03 11:49:09 PDT
Created attachment 150655 [details]
Patch

Rebasing patch.
Comment 6 James Robinson 2012-07-27 11:12:26 PDT
I think reverts typically refer to the revision number - this is a revert of r120360 (bug 88384), right?  I'm not sure I get it - if we just revert this patch, won't we reintroduce the bug it was supposed to fix?  Bug 89298 is marked as blocked on this bug and is intended to fix the bug again, but we need to keep things working.

I don't really get the motivation for changing this.  https://bugs.webkit.org/show_bug.cgi?id=89298 requires placing ugly #if PLATFORM(CHROMIUM) blocks in cross-platform code and I can't tell that there is any corresponding improvement.  Do we have a requirement to have different settings for different compositors in the same process, or is this just a stylistic concern?
Comment 7 vollick 2012-07-27 15:03:47 PDT
(In reply to comment #6)
> I think reverts typically refer to the revision number - this is a revert of r120360 (bug 88384), right?  I'm not sure I get it - if we just revert this patch, won't we reintroduce the bug it was supposed to fix?  Bug 89298 is marked as blocked on this bug and is intended to fix the bug again, but we need to keep things working.
> 
> I don't really get the motivation for changing this.  https://bugs.webkit.org/show_bug.cgi?id=89298 requires placing ugly #if PLATFORM(CHROMIUM) blocks in cross-platform code and I can't tell that there is any corresponding improvement.  Do we have a requirement to have different settings for different compositors in the same process, or is this just a stylistic concern?

I didn't like resorting to globals just to pass the accelerated animation preference around. At the time, it looked like it was the only way, but once I saw that it could be plumbed relatively easily, I thought that would be a safer option (and would discourage further use of global settings). That work seemed to naturally split into a couple of patches. My hope was that if they were both approved, they could be landed in quick succession, and we wouldn't notice the brief reintroduction of the bug.
Comment 8 James Robinson 2012-07-27 15:07:04 PDT
(In reply to comment #7)
> My hope was that if they were both approved, they could be landed in quick succession, and we wouldn't notice the brief reintroduction of the bug.

That's a very dangerous way to live, and not something I'm comfortable with.  There are all sorts of reasons it could break - we might pick up a roll that has one and not the other, one or both halves could be reverted, etc etc.  We have to keep trunk shippable at all times since we ship from trunk continually.
Comment 9 vollick 2012-07-27 15:14:16 PDT
(In reply to comment #8)
> (In reply to comment #7)
> > My hope was that if they were both approved, they could be landed in quick succession, and we wouldn't notice the brief reintroduction of the bug.
> 
> That's a very dangerous way to live, and not something I'm comfortable with.  There are all sorts of reasons it could break - we might pick up a roll that has one and not the other, one or both halves could be reverted, etc etc.  We have to keep trunk shippable at all times since we ship from trunk continually.

That's true. I will merge the two patches and upload into one bug (I believe they need to be rebased anyhow).
Comment 10 James Robinson 2012-07-27 15:24:20 PDT
If we have to touch cross-platform code to add this setting, I don't think it's worth it.
Comment 11 James Robinson 2012-07-30 20:40:42 PDT
Comment on attachment 150655 [details]
Patch

R- since this will reintroduce bug 88384
Comment 12 Stephen Chenney 2013-04-09 17:06:24 PDT
Marked LayoutTest bugs, bugs with Chromium IDs, and some others as WontFix. Test failure bugs still are trackable via TestExpectations or disabled unit tests.