|
[Variables] Enable get/setProperty and similar APIs from the CSSOM
Add support for custom properties to the rule property set OM. My
approach adds an extra "if" to many of the standard code paths in
the interest of avoiding unnecessary code duplication, but if
we're really worried about performance, this could be changed.
There are clearly still parts of the code that assumes a property
ID should be enough to lookup an arbitrary property. These will
have to be burned down, but in the meantime I short-circuited
findCSSPropertyWithID for the custom property case.
BUG= 551553
Committed: https://crrev.com/044c76e83b828c23e7e9f317d3db9304046dbb56
Cr-Commit-Position: refs/heads/master@{#361279}
Total comments: 14
Total comments: 7
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+341 lines, -88 lines) |
Patch |
 |
A |
third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-in-object-model.html
|
View
|
1
2
3
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-in-object-model-expected.txt
|
View
|
1
2
3
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+12 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSStyleDeclaration.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSValue.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+48 lines, -16 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/StylePropertySerializer.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
|
View
|
1
2
|
3 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/StylePropertySet.h
|
View
|
1
2
3
4
5
|
6 chunks |
+31 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/StylePropertySet.cpp
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+115 lines, -42 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSParser.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSParser.cpp
|
View
|
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSParserImpl.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
|
View
|
1
2
|
3 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSVariableParser.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 45 (12 generated)
|