|
Have Element::ensureMutableInlineStyle() return a reference
Have Element::ensureMutableInlineStyle() return a reference instead of a
pointer as it can never return null. This makes the calling code look safer.
Also update StyleRule*::properties() / StyleRule*::mutableProperties() to return
a reference as a result. This gets rid of several unnecessary null checks as
well.
R=adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168044
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+109 lines, -113 lines) |
Patch |
|
M |
Source/core/animation/css/CSSAnimations.cpp
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSFilterRule.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/CSSFontFaceRule.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/CSSKeyframeRule.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSKeyframeRule.cpp
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSPageRule.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/CSSStyleRule.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/CSSViewportRule.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/ElementRuleCollector.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/css/FontFace.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/FontFace.cpp
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/css/PageRuleCollector.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/css/PropertySetCSSStyleDeclaration.h
|
View
|
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
View
|
|
13 chunks |
+21 lines, -22 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StylePropertySet.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/StyleRule.h
|
View
|
|
9 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StyleRule.cpp
|
View
|
|
5 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/css/StyleSheetContents.cpp
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/StyleResolver.cpp
|
View
|
1
|
3 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/ViewportStyleResolver.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.cpp
|
View
|
1
|
9 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/editing/EditingStyle.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorStyleSheet.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/page/PageSerializer.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFontFaceElement.cpp
|
View
|
1
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|