| Index: Source/core/editing/markup.cpp
|
| diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp
|
| index e70895fa3661f4f563c56d120692454538374820..2c7c3c0ac846e4281576cb5a03370f38d9ac63d1 100644
|
| --- a/Source/core/editing/markup.cpp
|
| +++ b/Source/core/editing/markup.cpp
|
| @@ -483,7 +483,7 @@ static PassRefPtr<EditingStyle> styleFromMatchedRulesAndInlineDecl(const Node* n
|
|
|
| // FIXME: Having to const_cast here is ugly, but it is quite a bit of work to untangle
|
| // the non-const-ness of styleFromMatchedRulesForElement.
|
| - HTMLElement* element = const_cast<HTMLElement*>(static_cast<const HTMLElement*>(node));
|
| + HTMLElement* element = const_cast<HTMLElement*>(toHTMLElement(node));
|
| RefPtr<EditingStyle> style = EditingStyle::create(element->inlineStyle());
|
| style->mergeStyleFromRules(element);
|
| return style.release();
|
|
|