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

Issue 92493003: Have CSSFontFeatureValue store the tag as an AtomicString instead of a String (Closed)

Created:
7 years ago by Inactive
Modified:
7 years ago
CC:
blink-reviews, jamesr, krit, dsinclair, danakj, dglazkov+blink, Rik, apavlov+blink_chromium.org, darktears, Stephen Chennney, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Have CSSFontFeatureValue store the tag as an AtomicString instead of a String Have CSSFontFeatureValue store the tag as an AtomicString instead of a String. CSSFontFeatureValue objects are constructed in: - CSSParser::parseFontFeatureTag() where the tag is a CSSParserString that can be easily be used to construct either a String or an AtomicString - CSSComputedStyleDeclaration::getPropertyCSSValue() where it is constructed from a FontFeature. FontFeature stores the tag as an AtomicString. CSSFontFeatureValue::tag() getter is used by: - FontBuilder::setFeatureSettingsValue() to construct a FontFeature object, which requires the tag as a AtomicString and thus required us to convert the tag from String to AtomicString. - CSSFontFeatureValue::customCSSText() which uses StringBuilder::append(), so it does not matter if the tag is a String or AtomicString. - CSSFontFeatureValue::equals() for comparing the tags of 2 CSSFontFeatureValue objects. In this case, keeping the tag as AtomicString would be more efficient. Therefore, by having CSSFontFeatureValue store the tag as an AtomicString, we gain consistency with FontFeature, which is important as we need 2-way conversion from CSSFontFeatureValue <-> FontFeature. Also, it makes CSSFontFeatureValue::equals() faster. R=eseidel BUG=323739 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162789

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add constructor argument names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M Source/core/css/CSSFontFeatureValue.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/css/CSSFontFeatureValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/harfbuzz/HarfBuzzShaper.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Inactive
7 years ago (2013-11-27 20:35:14 UTC) #1
eseidel
lgtm https://codereview.chromium.org/92493003/diff/1/Source/core/css/CSSFontFeatureValue.h File Source/core/css/CSSFontFeatureValue.h (right): https://codereview.chromium.org/92493003/diff/1/Source/core/css/CSSFontFeatureValue.h#newcode36 Source/core/css/CSSFontFeatureValue.h:36: static PassRefPtr<CSSFontFeatureValue> create(const AtomicString& tag, int value) I'm ...
7 years ago (2013-11-27 20:37:34 UTC) #2
Inactive
https://codereview.chromium.org/92493003/diff/1/Source/core/css/CSSFontFeatureValue.h File Source/core/css/CSSFontFeatureValue.h (right): https://codereview.chromium.org/92493003/diff/1/Source/core/css/CSSFontFeatureValue.h#newcode48 Source/core/css/CSSFontFeatureValue.h:48: CSSFontFeatureValue(const AtomicString&, int); On 2013/11/27 20:37:34, eseidel wrote: > ...
7 years ago (2013-11-27 20:44:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/92493003/20001
7 years ago (2013-11-27 20:55:32 UTC) #4
commit-bot: I haz the power
7 years ago (2013-11-28 01:31:05 UTC) #5
Message was sent while issue was closed.
Change committed as 162789

Powered by Google App Engine
This is Rietveld 408576698