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

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

Issue 2609803002: Use ShadowData in DropShadowFilterOperation (Closed)
Patch Set: Fix blend(...) order Created 3 years, 12 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
Index: third_party/WebKit/Source/core/style/ShadowData.cpp
diff --git a/third_party/WebKit/Source/core/style/ShadowData.cpp b/third_party/WebKit/Source/core/style/ShadowData.cpp
index ec94bd86626223624006f759ebcf39c423f996e5..ee423f53361e67d3440fb79c286c604eedd19f41 100644
--- a/third_party/WebKit/Source/core/style/ShadowData.cpp
+++ b/third_party/WebKit/Source/core/style/ShadowData.cpp
@@ -42,4 +42,9 @@ ShadowData ShadowData::blend(const ShadowData& from,
color().resolve(currentColor), progress));
}
+ShadowData ShadowData::neutralValue() {
+ return ShadowData(FloatPoint(0, 0), 0, 0, Normal,
+ StyleColor(Color::transparent));
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/ShadowData.h ('k') | third_party/WebKit/Source/core/style/ShadowList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698