| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef zoomAdjustedPixelValue_h | |
| 6 #define zoomAdjustedPixelValue_h | |
| 7 | |
| 8 #include "core/css/CSSPrimitiveValue.h" | |
| 9 #include "core/style/ComputedStyle.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 class ComputedStyle; | |
| 13 | |
| 14 inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value, | |
| 15 const ComputedStyle& style) { | |
| 16 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), | |
| 17 CSSPrimitiveValue::UnitType::Pixels); | |
| 18 } | |
| 19 } | |
| 20 #endif // zoomAdjustedPixelValue_h | |
| OLD | NEW |