Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index 597f08ccbfbef4d7e89ca3920449af20899cd085..c66a90e815e3e445dc532a73487c6d85c5a2837b 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. |