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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1407123011: Use a converter to resolve style for -webkit-filter and backdrop-filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index e2539c609aeb1073938722aed39d9a1d7f3f8596..ccdd3374aba7b1ae0b9696b3c7c79996c6a266c6 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -40,7 +40,7 @@
#include "core/css/CSSStringValue.h"
#include "core/css/CSSURIValue.h"
#include "core/css/CSSValuePair.h"
-#include "core/svg/SVGElement.h"
+#include "core/css/resolver/FilterOperationResolver.h"
#include "core/svg/SVGURIReference.h"
#include "platform/transforms/RotateTransformOperation.h"
#include "platform/transforms/ScaleTransformOperation.h"
@@ -111,6 +111,11 @@ LengthBox StyleBuilderConverter::convertClip(StyleResolverState& state, const CS
convertLengthOrAuto(state, *rect.left()));
}
+FilterOperations StyleBuilderConverter::convertFilterOperations(StyleResolverState& state, const CSSValue& value)
+{
+ return FilterOperationResolver::createFilterOperations(state, value);
+}
+
static FontDescription::GenericFamilyType convertGenericFamily(CSSValueID valueID)
{
switch (valueID) {

Powered by Google App Engine
This is Rietveld 408576698