Index: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp |
index 0dfffdcab5d3efeb99e492ac575cd569a492c990..d553a47001d999ea99a702183d5c2a21ac00ef87 100644 |
--- a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp |
@@ -35,7 +35,6 @@ |
#include "core/css/CSSVariableData.h" |
#include "core/css/ComputedStyleCSSValueMapping.h" |
#include "core/css/parser/CSSParser.h" |
-#include "core/css/zoomAdjustedPixelValue.h" |
#include "core/dom/Document.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/PseudoElement.h" |
@@ -184,6 +183,12 @@ |
return static_cast<CSSValueID>(CSSValueXxSmall + keywordSize - 1); |
} |
+inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value, |
+ const ComputedStyle& style) { |
+ return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), |
+ CSSPrimitiveValue::UnitType::Pixels); |
+} |
+ |
void logUnimplementedPropertyID(CSSPropertyID propertyID) { |
DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, propertyIDSet, ()); |
if (!propertyIDSet.insert(propertyID).isNewEntry) |