| Index: sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/sky/engine/core/editing/ReplaceSelectionCommand.cpp b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| index 3357f532dbafda5ffce1d5a536c86a54dca4cdb7..9382905b0523819bda95513ea8527ef94562f4fb 100644
|
| --- a/sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -489,12 +489,12 @@ static bool isInlineHTMLElementWithStyle(const Node* node)
|
| if (isBlock(node))
|
| return false;
|
|
|
| - if (!node->isHTMLElement())
|
| + if (!node->isElementNode())
|
| return false;
|
|
|
| // We can skip over elements whose class attribute is
|
| // one of our internal classes.
|
| - const HTMLElement* element = toHTMLElement(node);
|
| + const Element* element = toElement(node);
|
| const AtomicString& classAttributeValue = element->getAttribute(HTMLNames::classAttr);
|
| if (classAttributeValue == AppleTabSpanClass)
|
| return true;
|
|
|