Index: Source/core/editing/SimplifyMarkupCommand.cpp |
diff --git a/Source/core/editing/SimplifyMarkupCommand.cpp b/Source/core/editing/SimplifyMarkupCommand.cpp |
index 526653f62444084ec61fb0249439b642c3621caf..70133d6a15167c74e3f48e377071e48bd4e96d1c 100644 |
--- a/Source/core/editing/SimplifyMarkupCommand.cpp |
+++ b/Source/core/editing/SimplifyMarkupCommand.cpp |
@@ -77,7 +77,7 @@ void SimplifyMarkupCommand::doApply() |
} |
unsigned context; |
- if (currentNode->renderStyle()->visualInvalidationDiff(*startingStyle, context) == StyleDifferenceEqual && !context) |
+ if (currentNode->renderStyle()->visualInvalidationDiff(*startingStyle, context).hasNoChange() && !context) |
topNodeWithStartingStyle = currentNode; |
} |