Chromium Code Reviews| Index: Source/core/editing/commands/EditorCommand.cpp |
| diff --git a/Source/core/editing/commands/EditorCommand.cpp b/Source/core/editing/commands/EditorCommand.cpp |
| index 546c0dabfb9d5008efae0e4428648de28f9ba2ae..127946bd9f7540ae9607501903edee4838c47b63 100644 |
| --- a/Source/core/editing/commands/EditorCommand.cpp |
| +++ b/Source/core/editing/commands/EditorCommand.cpp |
| @@ -120,14 +120,14 @@ static bool applyCommandToFrame(LocalFrame& frame, EditorCommandSource source, E |
| static bool executeApplyStyle(LocalFrame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue) |
| { |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksModeg); |
|
rune
2015/08/28 09:02:59
Looks like this won't compile.
alancutter (OOO until 2018)
2015/08/31 00:04:02
Thanks, a stray git command slipped in there.
|
| style->setProperty(propertyID, propertyValue); |
| return applyCommandToFrame(frame, source, action, style.get()); |
| } |
| static bool executeApplyStyle(LocalFrame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, CSSValueID propertyValue) |
| { |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksModeg); |
| style->setProperty(propertyID, propertyValue); |
| return applyCommandToFrame(frame, source, action, style.get()); |
| } |
| @@ -155,7 +155,7 @@ static bool executeToggleStyleInList(LocalFrame& frame, EditorCommandSource sour |
| } |
| // FIXME: We shouldn't be having to convert new style into text. We should have setPropertyCSSValue. |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> newMutableStyle = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> newMutableStyle = MutableStylePropertySet::create(HTMLQuirksModeg); |
| newMutableStyle->setProperty(propertyID, newStyle); |
| return applyCommandToFrame(frame, source, action, newMutableStyle.get()); |
| } |
| @@ -178,7 +178,7 @@ static bool executeToggleStyle(LocalFrame& frame, EditorCommandSource source, Ed |
| static bool executeApplyParagraphStyle(LocalFrame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue) |
| { |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksModeg); |
| style->setProperty(propertyID, propertyValue); |
| // FIXME: We don't call shouldApplyStyle when the source is DOM; is there a good reason for that? |
| switch (source) { |
| @@ -610,7 +610,7 @@ static bool executeJustifyRight(LocalFrame& frame, Event*, EditorCommandSource s |
| static bool executeMakeTextWritingDirectionLeftToRight(LocalFrame& frame, Event*, EditorCommandSource, const String&) |
| { |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksModeg); |
| style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed); |
| style->setProperty(CSSPropertyDirection, CSSValueLtr); |
| frame.editor().applyStyle(style.get(), EditActionSetWritingDirection); |
| @@ -619,7 +619,7 @@ static bool executeMakeTextWritingDirectionLeftToRight(LocalFrame& frame, Event* |
| static bool executeMakeTextWritingDirectionNatural(LocalFrame& frame, Event*, EditorCommandSource, const String&) |
| { |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksModeg); |
| style->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal); |
| frame.editor().applyStyle(style.get(), EditActionSetWritingDirection); |
| return true; |
| @@ -627,7 +627,7 @@ static bool executeMakeTextWritingDirectionNatural(LocalFrame& frame, Event*, Ed |
| static bool executeMakeTextWritingDirectionRightToLeft(LocalFrame& frame, Event*, EditorCommandSource, const String&) |
| { |
| - RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| + RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksModeg); |
| style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed); |
| style->setProperty(CSSPropertyDirection, CSSValueRtl); |
| frame.editor().applyStyle(style.get(), EditActionSetWritingDirection); |