|
Move CSSOM classes to using MutableStylePropertySet over StylePropertySet.
Moved ensureCSSStyleDeclaration() and ensureInlineCSSStyleDeclaration() from StylePropertySet
to MutableStylePropertySet.
StyleRule & co now return a MutableStylePropertySet* from mutableProperties() to aid with...
CSSStyleDeclaration now only deals with MutableStylePropertySets. This was already the case
in practice, we just didn't have any compile-time foot-shooting protection.
In other words, if there's a CSSOM wrapper for a given StylePropertySet, it's guaranteed to
be mutable, and the pointer types now reflect this.
This is a backport from WebKit r148396. Patch by Andreas Kling reviewed by Anders Carlsson.
R=eseidel@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151073
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+57 lines, -54 lines) |
Patch |
|
M |
Source/core/css/PropertySetCSSStyleDeclaration.h
|
View
|
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StylePropertySet.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StylePropertySet.cpp
|
View
|
|
1 chunk |
+4 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StyleRule.h
|
View
|
|
7 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StyleRule.cpp
|
View
|
|
5 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/css/WebKitCSSKeyframeRule.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/WebKitCSSKeyframeRule.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Attr.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Attr.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/editing/EditingStyle.cpp
|
View
|
|
6 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/editing/FrameSelection.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/editing/FrameSelection.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorCSSAgent.cpp
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|