| Index: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| index a2982225f5a44cdfe7bfe5dddffd14aa687f5f2c..20e114a0d7dbdabb58c38dff6667c7567276eafb 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| @@ -763,7 +763,7 @@ void ApplyStyleCommand::fixRangeAndApplyInlineStyle(EditingStyle* style, const P
|
| // e.g. When applying font-size: large on <font color="blue">hello</font>, we need to include the font element in our run
|
| // to generate <font color="blue" size="4">hello</font> instead of <font color="blue"><font size="4">hello</font></font>
|
| Range* range = Range::create(startNode->document(), start, end);
|
| - Element* editableRoot = startNode->rootEditableElement();
|
| + Element* editableRoot = rootEditableElement(*startNode);
|
| if (startNode != editableRoot) {
|
| while (editableRoot && startNode->parentNode() != editableRoot && isNodeVisiblyContainedWithin(*startNode->parentNode(), *range))
|
| startNode = startNode->parentNode();
|
|
|