Index: third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp |
diff --git a/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp b/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp |
index 2d5dd5a0a2a2d6e4db9076cc6a5d383a1faa0903..0c930d29eb22acbf5d4e0eb2ff7b648a6380b46b 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp |
+++ b/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp |
@@ -4,6 +4,7 @@ |
#include "core/css/cssom/StyleValueFactory.h" |
+#include "core/css/CSSImageValue.h" |
#include "core/css/CSSValue.h" |
#include "core/css/cssom/CSSNumberValue.h" |
#include "core/css/cssom/CSSSimpleLength.h" |
@@ -11,6 +12,7 @@ |
#include "core/css/cssom/CSSStyleVariableReferenceValue.h" |
#include "core/css/cssom/CSSTokenStreamValue.h" |
#include "core/css/cssom/CSSTransformValue.h" |
+#include "core/css/cssom/CSSURLImageValue.h" |
#include "core/css/cssom/CSSUnsupportedStyleValue.h" |
namespace blink { |
@@ -39,6 +41,11 @@ CSSStyleValue* styleValueForProperty(CSSPropertyID propertyID, const CSSValue& v |
return CSSTokenStreamValue::fromCSSValue(toCSSVariableReferenceValue(value)); |
} |
+ if (value.isImageValue()) { |
+ const CSSImageValue& imageValue = toCSSImageValue(value); |
+ return CSSURLImageValue::create(imageValue.valueWithURLMadeAbsolute()); |
esprehn
2016/08/30 21:39:19
Note this causes two allocations for every image v
anthonyhkf
2016/08/31 01:45:59
Acknowledged.
|
+ } |
+ |
return nullptr; |
} |