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

Unified Diff: third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp

Issue 2904723002: Change ContentData::operator== to iterate through whole list. (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « third_party/WebKit/Source/core/style/ContentData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp b/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
index 362043eaef4ce14a27f1230d8c8800fe2f6e0c19..0f4b1c77d1c1b4279c6cb42a0ef334120c6dc371 100644
--- a/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp
@@ -292,15 +292,7 @@ bool StyleRareNonInheritedData::operator==(
bool StyleRareNonInheritedData::ContentDataEquivalent(
const StyleRareNonInheritedData& o) const {
- ContentData* a = content_.Get();
- ContentData* b = o.content_.Get();
-
- while (a && b && *a == *b) {
- a = a->Next();
- b = b->Next();
- }
-
- return !a && !b;
+ return DataEquivalent(content_, o.content_);
}
bool StyleRareNonInheritedData::CounterDataEquivalent(
« no previous file with comments | « third_party/WebKit/Source/core/style/ContentData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698