Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Issue 14324009: Add support for disabling CSS Properties at runtime (Closed)

Created:
7 years, 8 months ago by mitica
Modified:
7 years, 8 months ago
CC:
blink-reviews, Julien - ping for review, Mike Lawther (Google), mitica, paulirish
Base URL:
http://src.chromium.org/blink/trunk/Source/
Visibility:
Public.

Description

Enable runtime switching of CSS Properties. In order to prevent this from changing test results I had to also make CSS Exclusions runtime-enabled in DRT (now that we're actually respecting the runtime enabled flag in CSS). In ContentShell this test will make more sense as we will be able to actually test a shipping configuration instead of whatever DRT happens to have its flags set to. BUG=232181 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149139

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Updated version of mitica's patch #

Patch Set 4 : Updated patch #

Patch Set 5 : updated #

Patch Set 6 : Updated, upload keeps crashing #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Final patch, ready for review #

Total comments: 2

Patch Set 10 : Also fix CSS Exclusions to be runtime enabled for testing #

Patch Set 11 : Updated per Mitica's comments #

Total comments: 10

Patch Set 12 : Updated after Ojan's feedback #

Patch Set 13 : Runtime guard more uses of CSSPropertyID, per Elliot's request. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -58 lines) Patch
M Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +10 lines, -4 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +23 lines, -13 lines 0 comments Download
M Source/core/css/CSSParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/DOMWindowCSS.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/StylePropertySet.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StylePropertySet.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +17 lines, -10 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +26 lines, -8 lines 0 comments Download
A + Source/core/page/RuntimeCSSEnabled.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -20 lines 0 comments Download
A Source/core/page/RuntimeCSSEnabled.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +114 lines, -0 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestRunner/public/WebPreferences.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
mitica
Early version of the patch, requesting some feedback on the work so far :)
7 years, 8 months ago (2013-04-18 18:11:15 UTC) #1
eseidel
I think that looks great. We used to have a BitVector class in WTF, but ...
7 years, 8 months ago (2013-04-22 17:48:29 UTC) #2
eseidel
https://codereview.chromium.org/14324009/diff/6001/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp File bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp (right): https://codereview.chromium.org/14324009/diff/6001/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp#newcode252 bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:252: if (!isCSSValueEnabled(wsValue)) I don't believe this part is correct ...
7 years, 8 months ago (2013-04-23 01:31:59 UTC) #3
eseidel
https://codereview.chromium.org/14324009/diff/6001/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp File bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp (right): https://codereview.chromium.org/14324009/diff/6001/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp#newcode174 bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:174: if (!propInfo || propInfo->propID == CSSPropertyInvalid) When is CSSPropertyInvalid ...
7 years, 8 months ago (2013-04-23 01:36:36 UTC) #4
mitica
The BitVectors have different lengths for Properties and Values, I've made a change for fixing ...
7 years, 8 months ago (2013-04-23 14:02:13 UTC) #5
Julien - ping for review
Wouldn't it make more sense to have the files RuntimeCSSEnabled.{cpp|h} be auto-generated from CSSPropertyNames.in (and ...
7 years, 8 months ago (2013-04-23 21:18:42 UTC) #6
eseidel
Yup! I completely agree Julien! This is just enough to get Adobe and others (who ...
7 years, 8 months ago (2013-04-24 03:14:56 UTC) #7
eseidel
It's possible (probable?) that this will need more expectations updates since this effectively disables CSS ...
7 years, 8 months ago (2013-04-24 03:18:14 UTC) #8
eseidel
7 years, 8 months ago (2013-04-24 03:18:27 UTC) #9
eseidel
7 years, 8 months ago (2013-04-24 03:18:47 UTC) #10
mitica
https://codereview.chromium.org/14324009/diff/33001/Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp File Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp (right): https://codereview.chromium.org/14324009/diff/33001/Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp#newcode162 Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:162: for (int id = firstCSSProperty; id < firstCSSProperty + ...
7 years, 8 months ago (2013-04-24 06:24:25 UTC) #11
eseidel
https://codereview.chromium.org/14324009/diff/33001/Source/core/css/CSSParser.cpp#newcode1287 > Source/core/css/CSSParser.cpp:1287: // FIXME: This should check > RuntimeCSSEnabled::isCSSPropertyEnabled(propertyID). > Hopefully I dont' get ...
7 years, 8 months ago (2013-04-24 20:43:17 UTC) #12
abarth-chromium
https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp File Source/core/page/RuntimeCSSEnabled.cpp (right): https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp#newcode2 Source/core/page/RuntimeCSSEnabled.cpp:2: * Copyright (C) 2013 Adobe Systems Incorporated. All rights ...
7 years, 8 months ago (2013-04-24 20:47:34 UTC) #13
eseidel
Mitica worked on earlier revisions of the patch, hence the copyright is there. I can ...
7 years, 8 months ago (2013-04-24 20:49:07 UTC) #14
Use mkwst_at_chromium.org plz.
https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp File Source/core/page/RuntimeCSSEnabled.cpp (right): https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp#newcode37 Source/core/page/RuntimeCSSEnabled.cpp:37: typedef Vector<bool> BitVector; As a drive-by, https://src.chromium.org/viewvc/blink/trunk/Source/wtf/BitVector.h is probably ...
7 years, 8 months ago (2013-04-24 20:51:43 UTC) #15
eseidel
On 2013/04/24 20:51:43, mkwst wrote: > https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp > File Source/core/page/RuntimeCSSEnabled.cpp (right): > > https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp#newcode37 > ...
7 years, 8 months ago (2013-04-24 20:56:31 UTC) #16
eseidel
PTAL. This is not WIP. :) It's ready for review.
7 years, 8 months ago (2013-04-24 20:57:36 UTC) #17
abarth-chromium
I'm not the right person to give you the official review stamp. Some minor nits ...
7 years, 8 months ago (2013-04-24 21:02:13 UTC) #18
ojan
lgtm https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp File Source/core/page/RuntimeCSSEnabled.cpp (right): https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp#newcode37 Source/core/page/RuntimeCSSEnabled.cpp:37: typedef Vector<bool> BitVector; +1 to just using BitVector. ...
7 years, 8 months ago (2013-04-25 02:25:21 UTC) #19
ojan
not lgtm Whoops. Didn't mean to hit the lgtm button!
7 years, 8 months ago (2013-04-25 02:25:39 UTC) #20
eseidel
On 2013/04/25 02:25:21, ojan wrote: > lgtm > > https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp > File Source/core/page/RuntimeCSSEnabled.cpp (right): > ...
7 years, 8 months ago (2013-04-25 07:27:46 UTC) #21
ojan
https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp#newcode37 > > Source/core/page/RuntimeCSSEnabled.cpp:37: typedef Vector<bool> BitVector; > > +1 to just using BitVector. > ...
7 years, 8 months ago (2013-04-25 07:43:10 UTC) #22
eseidel
On 2013/04/25 07:43:10, ojan wrote: https://codereview.chromium.org/14324009/diff/45001/Source/core/page/RuntimeCSSEnabled.cpp#newcode39 > > > Source/core/page/RuntimeCSSEnabled.cpp:39: static void > > setFromFeatureValue(bool ...
7 years, 8 months ago (2013-04-25 07:49:56 UTC) #23
eseidel
PTAL
7 years, 8 months ago (2013-04-25 07:51:09 UTC) #24
eseidel
Please please take another look?
7 years, 8 months ago (2013-04-25 20:11:13 UTC) #25
esprehn
not lgtm. This isn't going to work because CSSComputedStyleDeclaration has a hard list of properties ...
7 years, 8 months ago (2013-04-25 20:44:31 UTC) #26
eseidel
You people are ridiculous. Can we not land something and move forward?
7 years, 8 months ago (2013-04-25 21:09:50 UTC) #27
eseidel
I will have a patch up shortly to handle CSSComputedProperties. Just frustrated at my lack ...
7 years, 8 months ago (2013-04-25 21:22:49 UTC) #28
eseidel
PTAL
7 years, 8 months ago (2013-04-25 22:19:51 UTC) #29
esprehn
You've been pretty busy lately, and I was concerned that if we missed computed style ...
7 years, 8 months ago (2013-04-25 22:26:03 UTC) #30
eseidel
I don't believe that this necessarily gives us full coverage. From my minimal investigations, I ...
7 years, 8 months ago (2013-04-25 22:35:04 UTC) #31
ojan
lgtm On 2013/04/25 22:35:04, Eric Seidel (Google) wrote: > I believe I will need a ...
7 years, 8 months ago (2013-04-25 22:54:09 UTC) #32
eseidel
I'm probably just confused.
7 years, 8 months ago (2013-04-25 23:05:23 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitica@adobe.com/14324009/64001
7 years, 8 months ago (2013-04-25 23:05:29 UTC) #34
commit-bot: I haz the power
Failed to apply patch for Source/Source/core/page/RuntimeCSSEnabled.h: While running svn copy Source/Source/core/rendering/ExclusionInterval.h Source/Source/core/page/RuntimeCSSEnabled.h --config-dir /b/commit-queue/subversion_config --non-interactive ...
7 years, 8 months ago (2013-04-25 23:05:33 UTC) #35
jamesr
lgtm for /public/
7 years, 8 months ago (2013-04-25 23:10:52 UTC) #36
jamesr
Are you planning to modify the version of WebPreferences in the chromium tree with this ...
7 years, 8 months ago (2013-04-25 23:11:51 UTC) #37
eseidel
7 years, 8 months ago (2013-04-25 23:12:38 UTC) #38
Message was sent while issue was closed.
Committed patchset #13 manually as r149139 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698