| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index cfd193a8122249fcdc605feb0e59f4112f4863e5..8b3490979356235153c58f3a75c4326a1723384a 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -742,7 +742,7 @@ bool HTMLElement::translate() const
|
| {
|
| for (const Node* n = this; n; n = n->parentNode()) {
|
| if (n->isHTMLElement()) {
|
| - TranslateAttributeMode mode = static_cast<const HTMLElement*>(n)->translateAttributeMode();
|
| + TranslateAttributeMode mode = toHTMLElement(n)->translateAttributeMode();
|
| if (mode != TranslateAttributeInherit) {
|
| ASSERT(mode == TranslateAttributeYes || mode == TranslateAttributeNo);
|
| return mode == TranslateAttributeYes;
|
|
|