Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Unified Diff: Source/core/editing/ApplyStyleCommand.cpp

Issue 357033002: Remove attributeCount() / attributeAt() API from Element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clean up Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/NamedNodeMap.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/dom/NamedNodeMap.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698