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

Issue 181783005: Have Element::ensureMutableInlineStyle() return a reference (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 9 months ago
Reviewers:
adamk
CC:
blink-reviews, shans, eae+blinkwatch, fs, yurys+blink_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, loislo+blink_chromium.org, aandrey+blink_chromium.org, dino_apple.com, rwlbuis, krit, caseq+blink_chromium.org, Steve Block, alancutter (OOO until 2018), pfeldman+blink_chromium.org, Timothy Loh, dstockwell, dglazkov+blink, devtools-reviews_chromium.org, pdr., rune+blink, Eric Willigers, kenneth.christiansen, rjwright, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, gyuyoung.kim_webkit.org, darktears, alph+blink_chromium.org, vsevik+blink_chromium.org, Mike Lawther (Google), ed+blinkwatch_opera.com, f(malita), Inactive, Stephen Chennney
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Rebase #

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

Messages

Total messages: 8 (0 generated)
Inactive
6 years, 10 months ago (2014-02-26 22:58:08 UTC) #1
adamk
lgtm
6 years, 10 months ago (2014-02-27 00:03:32 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/181783005/1
6 years, 10 months ago (2014-02-27 00:05:57 UTC) #3
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-27 03:13:15 UTC) #4
commit-bot: I haz the power
Failed to apply patch for Source/core/dom/Element.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-27 03:13:16 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 9 months ago (2014-02-27 15:45:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/181783005/20001
6 years, 9 months ago (2014-02-27 15:45:26 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 18:08:29 UTC) #8
Message was sent while issue was closed.
Change committed as 168044

Powered by Google App Engine
This is Rietveld 408576698