Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index e5403a8eef6c8628e4daa70087cbee4ab9c422fd..bd7409798c0c3ea8bd1d66554ba276b59282c543 100644 |
--- a/Source/core/editing/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/ApplyStyleCommand.cpp |
@@ -47,7 +47,7 @@ |
#include "core/html/HTMLFontElement.h" |
#include "core/html/HTMLSpanElement.h" |
#include "core/layout/LayoutObject.h" |
-#include "core/rendering/RenderText.h" |
+#include "core/layout/LayoutText.h" |
#include "platform/heap/Handle.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/text/StringBuilder.h" |
@@ -1040,7 +1040,7 @@ void ApplyStyleCommand::applyInlineStyleToPushDown(Node* node, EditingStyle* sty |
return; |
} |
- if (node->renderer()->isText() && toRenderText(node->renderer())->isAllCollapsibleWhitespace()) |
+ if (node->renderer()->isText() && toLayoutText(node->renderer())->isAllCollapsibleWhitespace()) |
return; |
// We can't wrap node with the styled element here because new styled element will never be removed if we did. |