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

Unified Diff: Source/core/editing/commands/ApplyStyleCommand.cpp

Issue 1320013005: Make CSSParserMode parameter not optional for MutableStylePropertySet::create() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/core/editing/commands/ApplyStyleCommand.cpp
diff --git a/Source/core/editing/commands/ApplyStyleCommand.cpp b/Source/core/editing/commands/ApplyStyleCommand.cpp
index 34899befa52be2acfeaae027a3723e74c44c62a4..9bce44e0db22be8e58cc07c3123088bd33883663 100644
--- a/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -304,7 +304,7 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style)
static PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyStyleOrCreateEmpty(const StylePropertySet* style)
{
if (!style)
- return MutableStylePropertySet::create();
+ return MutableStylePropertySet::create(HTMLQuirksMode);
return style->mutableCopy();
}

Powered by Google App Engine
This is Rietveld 408576698