| Index: third_party/WebKit/Source/core/css/zoomAdjustedPixelValue.h
|
| diff --git a/third_party/WebKit/Source/core/css/zoomAdjustedPixelValue.h b/third_party/WebKit/Source/core/css/zoomAdjustedPixelValue.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3ec7a97592ab33b9429948e506159c8aa1abdb24
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/css/zoomAdjustedPixelValue.h
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef zoomAdjustedPixelValue_h
|
| +#define zoomAdjustedPixelValue_h
|
| +
|
| +#include "core/css/CSSPrimitiveValue.h"
|
| +#include "core/style/ComputedStyle.h"
|
| +
|
| +namespace blink {
|
| +class ComputedStyle;
|
| +
|
| +inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value,
|
| + const ComputedStyle& style) {
|
| + return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style),
|
| + CSSPrimitiveValue::UnitType::Pixels);
|
| +}
|
| +}
|
| +#endif // zoomAdjustedPixelValue_h
|
|
|