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

Unified Diff: third_party/WebKit/Source/core/style/DataEquivalency.h

Issue 2926053002: Make RareNonInheritedData use MemberCopy and DataEquivalent. (Closed)
Patch Set: Rebase Created 3 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 | « no previous file | third_party/WebKit/Source/core/style/MemberCopy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/DataEquivalency.h
diff --git a/third_party/WebKit/Source/core/style/DataEquivalency.h b/third_party/WebKit/Source/core/style/DataEquivalency.h
index 495119165744fd712a2a83ba9b1d11d212dca501..2308e3c0101d2d03ee13cb55b373deb19d4000a9 100644
--- a/third_party/WebKit/Source/core/style/DataEquivalency.h
+++ b/third_party/WebKit/Source/core/style/DataEquivalency.h
@@ -14,6 +14,10 @@ template <typename T>
class Persistent;
template <typename T>
class Member;
+template <typename T>
+class DataRef;
+template <typename T>
+class DataPersistent;
template <typename T>
bool DataEquivalent(const T* a, const T* b) {
@@ -44,6 +48,18 @@ bool DataEquivalent(const std::unique_ptr<T>& a, const std::unique_ptr<T>& b) {
return DataEquivalent(a.get(), b.get());
}
+// TODO(shend): Remove this once all subgroups of StyleRareNonInheritedData are
+// generated
+template <typename T>
+bool DataEquivalent(const DataRef<T>& a, const DataRef<T>& b) {
+ return DataEquivalent(a.Get(), b.Get());
+}
+
+template <typename T>
+bool DataEquivalent(const DataPersistent<T>& a, const DataPersistent<T>& b) {
+ return DataEquivalent(a.Get(), b.Get());
+}
+
} // namespace blink
#endif // DataEquivalency_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/MemberCopy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698