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

Unified Diff: third_party/WebKit/Source/core/css/StylePropertySet.cpp

Issue 2390373002: Fix setting properties on CSSFontFaceRule (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/core/css/StylePropertySet.cpp
diff --git a/third_party/WebKit/Source/core/css/StylePropertySet.cpp b/third_party/WebKit/Source/core/css/StylePropertySet.cpp
index f6c760f9197d1e17abffa57751b90b65a51c83c0..a4ecddf0560140bd1354aea07e2b2091df116da1 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySet.cpp
+++ b/third_party/WebKit/Source/core/css/StylePropertySet.cpp
@@ -70,8 +70,9 @@ MutableStylePropertySet::MutableStylePropertySet(CSSParserMode cssParserMode)
: StylePropertySet(cssParserMode) {}
MutableStylePropertySet::MutableStylePropertySet(const CSSProperty* properties,
- unsigned length)
- : StylePropertySet(HTMLStandardMode) {
+ unsigned length,
+ CSSParserMode cssParserMode)
+ : StylePropertySet(cssParserMode) {
m_propertyVector.reserveInitialCapacity(length);
for (unsigned i = 0; i < length; ++i)
m_propertyVector.uncheckedAppend(properties[i]);
@@ -597,8 +598,9 @@ MutableStylePropertySet* MutableStylePropertySet::create(
MutableStylePropertySet* MutableStylePropertySet::create(
const CSSProperty* properties,
- unsigned count) {
- return new MutableStylePropertySet(properties, count);
+ unsigned count,
+ CSSParserMode cssParserMode) {
+ return new MutableStylePropertySet(properties, count, cssParserMode);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698