| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 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 Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef ComputedStyle_h | 26 #ifndef ComputedStyle_h |
| 27 #define ComputedStyle_h | 27 #define ComputedStyle_h |
| 28 | 28 |
| 29 #include <memory> |
| 29 #include "core/CSSPropertyNames.h" | 30 #include "core/CSSPropertyNames.h" |
| 30 #include "core/ComputedStyleBase.h" | 31 #include "core/ComputedStyleBase.h" |
| 31 #include "core/CoreExport.h" | 32 #include "core/CoreExport.h" |
| 32 #include "core/style/BorderValue.h" | 33 #include "core/style/BorderValue.h" |
| 33 #include "core/style/ComputedStyleConstants.h" | 34 #include "core/style/ComputedStyleConstants.h" |
| 34 #include "core/style/CounterDirectives.h" | 35 #include "core/style/CounterDirectives.h" |
| 35 #include "core/style/DataRef.h" | 36 #include "core/style/DataRef.h" |
| 36 #include "core/style/LineClampValue.h" | 37 #include "core/style/LineClampValue.h" |
| 37 #include "core/style/NinePieceImage.h" | 38 #include "core/style/NinePieceImage.h" |
| 38 #include "core/style/SVGComputedStyle.h" | 39 #include "core/style/SVGComputedStyle.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 64 #include "platform/RuntimeEnabledFeatures.h" | 65 #include "platform/RuntimeEnabledFeatures.h" |
| 65 #include "platform/ThemeTypes.h" | 66 #include "platform/ThemeTypes.h" |
| 66 #include "platform/fonts/FontDescription.h" | 67 #include "platform/fonts/FontDescription.h" |
| 67 #include "platform/geometry/FloatRoundedRect.h" | 68 #include "platform/geometry/FloatRoundedRect.h" |
| 68 #include "platform/geometry/LayoutRectOutsets.h" | 69 #include "platform/geometry/LayoutRectOutsets.h" |
| 69 #include "platform/graphics/Color.h" | 70 #include "platform/graphics/Color.h" |
| 70 #include "platform/scroll/ScrollTypes.h" | 71 #include "platform/scroll/ScrollTypes.h" |
| 71 #include "platform/text/TextDirection.h" | 72 #include "platform/text/TextDirection.h" |
| 72 #include "platform/text/UnicodeBidi.h" | 73 #include "platform/text/UnicodeBidi.h" |
| 73 #include "platform/transforms/TransformOperations.h" | 74 #include "platform/transforms/TransformOperations.h" |
| 74 #include "wtf/Forward.h" | 75 #include "platform/wtf/Forward.h" |
| 75 #include "wtf/LeakAnnotations.h" | 76 #include "platform/wtf/LeakAnnotations.h" |
| 76 #include "wtf/RefCounted.h" | 77 #include "platform/wtf/RefCounted.h" |
| 77 #include "wtf/Vector.h" | 78 #include "platform/wtf/Vector.h" |
| 78 #include <memory> | |
| 79 | 79 |
| 80 template <typename T, typename U> | 80 template <typename T, typename U> |
| 81 inline bool compareEqual(const T& t, const U& u) { | 81 inline bool compareEqual(const T& t, const U& u) { |
| 82 return t == static_cast<T>(u); | 82 return t == static_cast<T>(u); |
| 83 } | 83 } |
| 84 | 84 |
| 85 template <typename T> | 85 template <typename T> |
| 86 inline bool compareEqual(const T& a, const T& b) { | 86 inline bool compareEqual(const T& a, const T& b) { |
| 87 return a == b; | 87 return a == b; |
| 88 } | 88 } |
| (...skipping 3622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3711 pseudo_bits_ |= 1 << (pseudo - kFirstPublicPseudoId); | 3711 pseudo_bits_ |= 1 << (pseudo - kFirstPublicPseudoId); |
| 3712 } | 3712 } |
| 3713 | 3713 |
| 3714 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3714 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3715 return pseudo_bits_ & kElementPseudoIdMask; | 3715 return pseudo_bits_ & kElementPseudoIdMask; |
| 3716 } | 3716 } |
| 3717 | 3717 |
| 3718 } // namespace blink | 3718 } // namespace blink |
| 3719 | 3719 |
| 3720 #endif // ComputedStyle_h | 3720 #endif // ComputedStyle_h |
| OLD | NEW |