OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
7 * Copyright (C) 2015 Google Inc. All rights reserved. | 7 * Copyright (C) 2015 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "core/css/CSSShadowValue.h" | 40 #include "core/css/CSSShadowValue.h" |
41 #include "core/css/CSSTimingFunctionValue.h" | 41 #include "core/css/CSSTimingFunctionValue.h" |
42 #include "core/css/CSSValueList.h" | 42 #include "core/css/CSSValueList.h" |
43 #include "core/css/CSSValuePool.h" | 43 #include "core/css/CSSValuePool.h" |
44 #include "core/css/Pair.h" | 44 #include "core/css/Pair.h" |
45 #include "core/css/Rect.h" | 45 #include "core/css/Rect.h" |
46 #include "core/layout/LayoutBlock.h" | 46 #include "core/layout/LayoutBlock.h" |
47 #include "core/layout/LayoutBox.h" | 47 #include "core/layout/LayoutBox.h" |
48 #include "core/layout/LayoutGrid.h" | 48 #include "core/layout/LayoutGrid.h" |
49 #include "core/layout/LayoutObject.h" | 49 #include "core/layout/LayoutObject.h" |
50 #include "core/layout/style/ContentData.h" | 50 #include "core/style/ContentData.h" |
51 #include "core/layout/style/ComputedStyle.h" | 51 #include "core/style/ComputedStyle.h" |
52 #include "core/layout/style/PathStyleMotionPath.h" | 52 #include "core/style/PathStyleMotionPath.h" |
53 #include "core/layout/style/ShadowList.h" | 53 #include "core/style/ShadowList.h" |
54 #include "platform/LengthFunctions.h" | 54 #include "platform/LengthFunctions.h" |
55 | 55 |
56 namespace blink { | 56 namespace blink { |
57 | 57 |
58 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedPixelValue(d
ouble value, const ComputedStyle& style) | 58 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedPixelValue(d
ouble value, const ComputedStyle& style) |
59 { | 59 { |
60 return cssValuePool().createValue(adjustFloatForAbsoluteZoom(value, style),
CSSPrimitiveValue::CSS_PX); | 60 return cssValuePool().createValue(adjustFloatForAbsoluteZoom(value, style),
CSSPrimitiveValue::CSS_PX); |
61 } | 61 } |
62 | 62 |
63 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedNumberValue(
double value, const ComputedStyle& style) | 63 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedNumberValue(
double value, const ComputedStyle& style) |
(...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2572 return zoomAdjustedPixelValueForLength(svgStyle.ry(), style); | 2572 return zoomAdjustedPixelValueForLength(svgStyle.ry(), style); |
2573 | 2573 |
2574 case CSSPropertyAll: | 2574 case CSSPropertyAll: |
2575 return nullptr; | 2575 return nullptr; |
2576 } | 2576 } |
2577 ASSERT_NOT_REACHED(); | 2577 ASSERT_NOT_REACHED(); |
2578 return nullptr; | 2578 return nullptr; |
2579 } | 2579 } |
2580 | 2580 |
2581 } | 2581 } |
OLD | NEW |