Chromium Code Reviews| Index: Source/core/editing/ApplyStyleCommand.cpp |
| diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
| index 969d3194ee83c88e9003d4587dff09458d4ee6e0..64efc3a4f67c9e22b4c5364b9948d85ca1825d59 100644 |
| --- a/Source/core/editing/ApplyStyleCommand.cpp |
| +++ b/Source/core/editing/ApplyStyleCommand.cpp |
| @@ -1059,7 +1059,7 @@ void ApplyStyleCommand::pushDownInlineStyleAroundNode(EditingStyle* style, Node* |
| WillBeHeapVector<RefPtrWillBeMember<Element> > elementsToPushDown; |
| while (current && current != targetNode && current->contains(targetNode)) { |
| NodeVector currentChildren; |
| - getChildNodes(*current, currentChildren); |
| + getChildNodes(toContainerNode(*current), currentChildren); |
|
Inactive
2014/07/31 20:32:55
Safe because of contains() call above.
|
| RefPtrWillBeRawPtr<Element> styledElement = nullptr; |
| if (current->isStyledElement() && isStyledInlineElementToRemove(toElement(current))) { |
| styledElement = toElement(current); |