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

Issue 2038773002: [Typed OM] Add an "UnsupportedStyleValue" in C++ that just has a string for unknown types (Closed)

Created:
4 years, 6 months ago by meade_UTC10
Modified:
4 years, 6 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@stylevaue
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an "UnsupportedStyleValue" in C++ that just has a string for use on not-yet-supported or unknown types. In JavaScript, this object is just a base CSSStyleValue as per the spec: https://drafts.css-houdini.org/css-typed-om/#stylevalue-objects BUG=545318 Committed: https://crrev.com/1af6e80ef2424e321f99b38c386b6a8d63b0416a Cr-Commit-Position: refs/heads/master@{#398820}

Patch Set 1 #

Patch Set 2 : Make it compile and add a unit test #

Total comments: 2

Patch Set 3 : Sync to HEAD, update tests #

Patch Set 4 : Don't store the CSSPropertyID in the UnsupportedStyleValue #

Total comments: 4

Patch Set 5 : Address comments about comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -21 lines) Patch
M third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html View 1 2 2 chunks +21 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_iteration-expected.txt View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
A third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.cpp View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp View 1 2 3 4 4 chunks +25 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (9 generated)
meade_UTC10
PTAL. I'm not terribly happy with the toCSSValue() vs toCSSValue(CSSPropertyID) thing, and would like to ...
4 years, 6 months ago (2016-06-08 02:09:11 UTC) #5
ikilpatrick
https://codereview.chromium.org/2038773002/diff/20001/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h File third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h (right): https://codereview.chromium.org/2038773002/diff/20001/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h#newcode15 third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h:15: static CSSUnsupportedStyleValue* create(CSSPropertyID propertyID, const String& cssText) This will ...
4 years, 6 months ago (2016-06-08 20:20:44 UTC) #7
meade_UTC10
I moved the code I did't like into a helper function :) https://codereview.chromium.org/2038773002/diff/20001/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h File third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.h ...
4 years, 6 months ago (2016-06-09 05:56:30 UTC) #8
shans
lgtm
4 years, 6 months ago (2016-06-09 06:42:07 UTC) #9
Timothy Loh
lgtm https://codereview.chromium.org/2038773002/diff/60001/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl (right): https://codereview.chromium.org/2038773002/diff/60001/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl#newcode25 third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl:25: // The check has to happen later in ...
4 years, 6 months ago (2016-06-09 07:22:24 UTC) #10
meade_UTC10
https://codereview.chromium.org/2038773002/diff/60001/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl (right): https://codereview.chromium.org/2038773002/diff/60001/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl#newcode25 third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl:25: // The check has to happen later in this ...
4 years, 6 months ago (2016-06-09 07:50:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038773002/80001
4 years, 6 months ago (2016-06-09 07:51:38 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-09 09:16:22 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 09:17:55 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1af6e80ef2424e321f99b38c386b6a8d63b0416a
Cr-Commit-Position: refs/heads/master@{#398820}

Powered by Google App Engine
This is Rietveld 408576698