|
Disallow setting invalid values for registered properties via CSSOM
This patch rejects setting invalid values for registered properties via
the CSSStyleDeclaration::setProperty function. The behaviour which we
decided on is that we will retain any values set prior to registration
and compute them as if they were the unset keyword if they are invalid
after registration, but disallow setting such values after registration.
CSS Typed OM is not yet hooked up aside from the filtered computed map
for custom paint, so we don't yet make any changes there.
BUG= 641877
Committed: https://crrev.com/ed0f6121435448aa316c90be1468398ab2ef71b4
Cr-Commit-Position: refs/heads/master@{#441313}
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+168 lines, -43 lines) |
Patch |
|
A |
third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html
|
View
|
|
1 chunk |
+77 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/animation/EffectInput.cpp
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/animation/StringKeyframe.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/animation/StringKeyframe.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSStyleDeclaration.h
|
View
|
|
4 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/CSSStyleDeclaration.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
View
|
|
3 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/StylePropertySet.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/StylePropertySet.cpp
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/parser/CSSParser.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/parser/CSSParser.cpp
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
|
View
|
1
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/Document.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/editing/VisiblePositionTest.cpp
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
View
|
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/HTMLMarqueeElement.cpp
|
View
|
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 20 (11 generated)
|