| Index: Source/core/editing/ApplyStyleCommand.cpp
|
| diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp
|
| index a5a5df35facd8abe3c7bc2829451f647d519217d..c64b46bb4494025af566aee031855a98ef2fe881 100644
|
| --- a/Source/core/editing/ApplyStyleCommand.cpp
|
| +++ b/Source/core/editing/ApplyStyleCommand.cpp
|
| @@ -84,8 +84,8 @@ static bool hasNoAttributeOrOnlyStyleAttribute(const Element* element, ShouldSty
|
| || !element->inlineStyle() || element->inlineStyle()->isEmpty()))
|
| matchedAttributes++;
|
|
|
| - ASSERT(matchedAttributes <= element->attributeCount());
|
| - return matchedAttributes == element->attributeCount();
|
| + ASSERT(matchedAttributes <= element->attributes().size());
|
| + return matchedAttributes == element->attributes().size();
|
| }
|
|
|
| bool isStyleSpanOrSpanWithOnlyStyleAttribute(const Element* element)
|
|
|