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

Unified Diff: Source/core/css/FontFace.cpp

Issue 534133002: [WIP] bindings: Introduce PropertyBag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/TimingInput.cpp ('k') | Source/core/dom/DOMPoint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/FontFace.cpp
diff --git a/Source/core/css/FontFace.cpp b/Source/core/css/FontFace.cpp
index c14801203761f92e65f8aebc9870a546b89862ca..32b22a08e2eaea515c63aeb20b9292b0cf7a38f5 100644
--- a/Source/core/css/FontFace.cpp
+++ b/Source/core/css/FontFace.cpp
@@ -136,17 +136,17 @@ FontFace::FontFace(ExecutionContext* context, const AtomicString& family, const
{
Document* document = toDocument(context);
String value;
- if (DictionaryHelper::get(descriptors, "style", value))
+ if (descriptors.get("style", value))
setPropertyFromString(document, value, CSSPropertyFontStyle);
- if (DictionaryHelper::get(descriptors, "weight", value))
+ if (descriptors.get("weight", value))
setPropertyFromString(document, value, CSSPropertyFontWeight);
- if (DictionaryHelper::get(descriptors, "stretch", value))
+ if (descriptors.get("stretch", value))
setPropertyFromString(document, value, CSSPropertyFontStretch);
- if (DictionaryHelper::get(descriptors, "unicodeRange", value))
+ if (descriptors.get("unicodeRange", value))
setPropertyFromString(document, value, CSSPropertyUnicodeRange);
- if (DictionaryHelper::get(descriptors, "variant", value))
+ if (descriptors.get("variant", value))
setPropertyFromString(document, value, CSSPropertyFontVariant);
- if (DictionaryHelper::get(descriptors, "featureSettings", value))
+ if (descriptors.get("featureSettings", value))
setPropertyFromString(document, value, CSSPropertyWebkitFontFeatureSettings);
}
« no previous file with comments | « Source/core/animation/TimingInput.cpp ('k') | Source/core/dom/DOMPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698