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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 232133006: Modified to function QuotesData::equals() function to use operator overloading operator== for easy … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch Set 5 Created 6 years, 8 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/rendering/style/QuotesData.cpp ('k') | Source/core/rendering/style/StyleRareInheritedData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index 274f75d7cd8537ac7ef232be85b8bb07f46bab04..7f783c128ef3a8d2f7eb83e66e628ad4683aeca0 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -506,7 +506,7 @@ StyleDifference RenderStyle::visualInvalidationDiff(const RenderStyle& other, un
if (!rareInheritedData->shadowDataEquivalent(*other.rareInheritedData.get()))
return StyleDifferenceLayout;
- if (!QuotesData::equals(rareInheritedData->quotes.get(), other.rareInheritedData->quotes.get()))
+ if (rareInheritedData->quotes.get() != other.rareInheritedData->quotes.get())
return StyleDifferenceLayout;
}
@@ -697,7 +697,7 @@ void RenderStyle::setCursorList(PassRefPtr<CursorList> other)
void RenderStyle::setQuotes(PassRefPtr<QuotesData> q)
{
- if (QuotesData::equals(rareInheritedData->quotes.get(), q.get()))
+ if (rareInheritedData->quotes.get() == q.get())
return;
rareInheritedData.access()->quotes = q;
}
« no previous file with comments | « Source/core/rendering/style/QuotesData.cpp ('k') | Source/core/rendering/style/StyleRareInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698