| 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, 2008, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Lesser General Public | 6 * modify it under the terms of the GNU Lesser General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Lesser General Public License for more details. | 13 * Lesser General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
| 16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
| 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 18 * 02110-1301 USA | 18 * 02110-1301 USA |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef CSSComputedStyleDeclaration_h | 21 #ifndef CSSComputedStyleDeclaration_h |
| 22 #define CSSComputedStyleDeclaration_h | 22 #define CSSComputedStyleDeclaration_h |
| 23 | 23 |
| 24 #include "core/css/CSSStyleDeclaration.h" | 24 #include "core/css/CSSStyleDeclaration.h" |
| 25 #include "core/rendering/style/RenderStyleConstants.h" | 25 #include "core/rendering/style/RenderStyleConstants.h" |
| 26 #include "platform/fonts/FixedPitchFontType.h" |
| 26 #include "wtf/HashMap.h" | 27 #include "wtf/HashMap.h" |
| 27 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
| 28 #include "wtf/text/AtomicString.h" | 29 #include "wtf/text/AtomicString.h" |
| 29 #include "wtf/text/AtomicStringHash.h" | 30 #include "wtf/text/AtomicStringHash.h" |
| 30 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 31 | 32 |
| 32 namespace WebCore { | 33 namespace WebCore { |
| 33 | 34 |
| 34 class CSSPrimitiveValue; | 35 class CSSPrimitiveValue; |
| 35 class CSSValueList; | 36 class CSSValueList; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 60 virtual void deref() OVERRIDE; | 61 virtual void deref() OVERRIDE; |
| 61 #endif | 62 #endif |
| 62 | 63 |
| 63 String getPropertyValue(CSSPropertyID) const; | 64 String getPropertyValue(CSSPropertyID) const; |
| 64 bool getPropertyPriority(CSSPropertyID) const; | 65 bool getPropertyPriority(CSSPropertyID) const; |
| 65 | 66 |
| 66 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con
st OVERRIDE; | 67 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con
st OVERRIDE; |
| 67 | 68 |
| 68 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateL
ayout = UpdateLayout) const; | 69 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateL
ayout = UpdateLayout) const; |
| 69 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons
t; | 70 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons
t; |
| 70 bool useFixedFontDefaultSize() const; | 71 FixedPitchFontType fixedPitchFontType() const; |
| 71 PassRefPtrWillBeRawPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpda
teLayout) const; | 72 PassRefPtrWillBeRawPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpda
teLayout) const; |
| 72 | 73 |
| 73 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve
ctor<CSSPropertyID>&) const; | 74 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve
ctor<CSSPropertyID>&) const; |
| 74 | 75 |
| 75 virtual void trace(Visitor*) OVERRIDE; | 76 virtual void trace(Visitor*) OVERRIDE; |
| 76 | 77 |
| 77 private: | 78 private: |
| 78 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS
tyle, const String&); | 79 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS
tyle, const String&); |
| 79 | 80 |
| 80 // The styled node is either the node passed into getComputedStyle, or the | 81 // The styled node is either the node passed into getComputedStyle, or the |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 PseudoId m_pseudoElementSpecifier; | 121 PseudoId m_pseudoElementSpecifier; |
| 121 bool m_allowVisitedStyle; | 122 bool m_allowVisitedStyle; |
| 122 #if !ENABLE(OILPAN) | 123 #if !ENABLE(OILPAN) |
| 123 unsigned m_refCount; | 124 unsigned m_refCount; |
| 124 #endif | 125 #endif |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace WebCore | 128 } // namespace WebCore |
| 128 | 129 |
| 129 #endif // CSSComputedStyleDeclaration_h | 130 #endif // CSSComputedStyleDeclaration_h |
| OLD | NEW |