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

Issue 1307673003: Made CSSPrimitiveValue::getString() only work for String types (Closed)

Created:
5 years, 4 months ago by sashab
Modified:
5 years, 3 months ago
Reviewers:
Timothy Loh, esprehn
CC:
blink-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis, shans
Base URL:
https://chromium.googlesource.com/chromium/blink.git@split_out_pair
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Made CSSPrimitiveValue::getString() only work for String types Cleaned up CSSPrimitiveValue::getString() to only return the string value if the unit type is a string (attribute, URL, String or custom ident). Also cleaned up callsites and added asserts to better document the expected behavior. BUG=523893 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201459

Patch Set 1 #

Patch Set 2 : Updated another callsite #

Patch Set 3 : Small fix #

Total comments: 6

Patch Set 4 : Review feedback #

Total comments: 2

Patch Set 5 : Rebase and review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M Source/core/css/CSSCounterValue.h View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M Source/web/WebAXObject.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
sashab
5 years, 4 months ago (2015-08-26 04:14:08 UTC) #2
Timothy Loh
Patch title/description should say getStringValue instead of getString https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h File Source/core/css/CSSCounterValue.h (right): https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h#newcode38 Source/core/css/CSSCounterValue.h:38: String ...
5 years, 3 months ago (2015-08-27 01:30:09 UTC) #3
sashab
https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h File Source/core/css/CSSCounterValue.h (right): https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h#newcode38 Source/core/css/CSSCounterValue.h:38: String listStyle() const { return getValueName(m_listStyle->getValueID()); } On 2015/08/27 ...
5 years, 3 months ago (2015-08-27 06:30:16 UTC) #4
Timothy Loh
lgtm, but you'll need a Source/web OWNER too https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h File Source/core/css/CSSCounterValue.h (right): https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h#newcode38 Source/core/css/CSSCounterValue.h:38: String ...
5 years, 3 months ago (2015-08-27 06:38:49 UTC) #5
sashab
esprehn ptal :) https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h File Source/core/css/CSSCounterValue.h (right): https://codereview.chromium.org/1307673003/diff/40001/Source/core/css/CSSCounterValue.h#newcode38 Source/core/css/CSSCounterValue.h:38: String listStyle() const { return getValueName(m_listStyle->getValueID()); ...
5 years, 3 months ago (2015-08-27 06:53:39 UTC) #7
sashab
ping esprehn :)
5 years, 3 months ago (2015-08-31 00:27:21 UTC) #8
esprehn
lgtm, this is just to avoid duplicating what cssText() already does?
5 years, 3 months ago (2015-08-31 01:18:31 UTC) #9
sashab
Yup pretty much.
5 years, 3 months ago (2015-08-31 01:20:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307673003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307673003/80001
5 years, 3 months ago (2015-08-31 01:20:47 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 02:46:31 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201459

Powered by Google App Engine
This is Rietveld 408576698