Index: Source/core/editing/EditingStyle.cpp |
diff --git a/Source/core/editing/EditingStyle.cpp b/Source/core/editing/EditingStyle.cpp |
index 21b1c93b6bf6f94809dc443962bb7ed101a9863d..c03e333199dab53484c64f4a457e6b09c566c93d 100644 |
--- a/Source/core/editing/EditingStyle.cpp |
+++ b/Source/core/editing/EditingStyle.cpp |
@@ -933,8 +933,8 @@ bool EditingStyle::elementIsStyledSpanOrHTMLEquivalent(const HTMLElement* elemen |
} |
// font with color attribute, span with style attribute, etc... |
- ASSERT(matchedAttributes <= element->attributeCount()); |
- return matchedAttributes >= element->attributeCount(); |
+ ASSERT(matchedAttributes <= element->attributes().size()); |
+ return matchedAttributes >= element->attributes().size(); |
} |
void EditingStyle::prepareToApplyAt(const Position& position, ShouldPreserveWritingDirection shouldPreserveWritingDirection) |