| 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. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 8 * Copyright (C) 2015 Google Inc. All rights reserved. | 8 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "core/style/ContentData.h" | 65 #include "core/style/ContentData.h" |
| 66 #include "core/style/CursorData.h" | 66 #include "core/style/CursorData.h" |
| 67 #include "core/style/QuotesData.h" | 67 #include "core/style/QuotesData.h" |
| 68 #include "core/style/ShadowList.h" | 68 #include "core/style/ShadowList.h" |
| 69 #include "core/style/StyleInheritedVariables.h" | 69 #include "core/style/StyleInheritedVariables.h" |
| 70 #include "core/style/StyleNonInheritedVariables.h" | 70 #include "core/style/StyleNonInheritedVariables.h" |
| 71 #include "platform/LengthFunctions.h" | 71 #include "platform/LengthFunctions.h" |
| 72 | 72 |
| 73 namespace blink { | 73 namespace blink { |
| 74 | 74 |
| 75 using namespace cssvalue; |
| 76 |
| 75 inline static bool isFlexOrGrid(const ComputedStyle* style) { | 77 inline static bool isFlexOrGrid(const ComputedStyle* style) { |
| 76 return style && style->isDisplayFlexibleOrGridBox(); | 78 return style && style->isDisplayFlexibleOrGridBox(); |
| 77 } | 79 } |
| 78 | 80 |
| 79 inline static CSSPrimitiveValue* zoomAdjustedPixelValue( | 81 inline static CSSPrimitiveValue* zoomAdjustedPixelValue( |
| 80 double value, | 82 double value, |
| 81 const ComputedStyle& style) { | 83 const ComputedStyle& style) { |
| 82 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), | 84 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), |
| 83 CSSPrimitiveValue::UnitType::Pixels); | 85 CSSPrimitiveValue::UnitType::Pixels); |
| 84 } | 86 } |
| (...skipping 3607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3692 case CSSPropertyAll: | 3694 case CSSPropertyAll: |
| 3693 return nullptr; | 3695 return nullptr; |
| 3694 default: | 3696 default: |
| 3695 break; | 3697 break; |
| 3696 } | 3698 } |
| 3697 NOTREACHED(); | 3699 NOTREACHED(); |
| 3698 return nullptr; | 3700 return nullptr; |
| 3699 } | 3701 } |
| 3700 | 3702 |
| 3701 } // namespace blink | 3703 } // namespace blink |
| OLD | NEW |