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, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 virtual ~CSSComputedStyleDeclaration(); | 56 virtual ~CSSComputedStyleDeclaration(); |
57 | 57 |
58 virtual void ref() OVERRIDE; | 58 virtual void ref() OVERRIDE; |
59 virtual void deref() OVERRIDE; | 59 virtual void deref() OVERRIDE; |
60 | 60 |
61 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const; | 61 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const; |
62 String getPropertyValue(CSSPropertyID) const; | 62 String getPropertyValue(CSSPropertyID) const; |
63 bool getPropertyPriority(CSSPropertyID) const; | 63 bool getPropertyPriority(CSSPropertyID) const; |
64 | 64 |
65 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const OVERRIDE; | 65 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con
st OVERRIDE; |
66 | 66 |
67 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateL
ayout) const; | 67 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateL
ayout) const; |
68 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons
t; | 68 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons
t; |
69 bool useFixedFontDefaultSize() const; | 69 bool useFixedFontDefaultSize() const; |
70 PassRefPtrWillBeRawPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpda
teLayout) const; | 70 PassRefPtrWillBeRawPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpda
teLayout) const; |
71 | 71 |
72 PassRefPtr<MutableStylePropertySet> copyPropertiesInSet(const Vector<CSSProp
ertyID>&) const; | 72 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve
ctor<CSSPropertyID>&) const; |
73 | 73 |
74 private: | 74 private: |
75 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const
String&); | 75 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const
String&); |
76 | 76 |
77 // The styled node is either the node passed into getComputedStyle, or the | 77 // The styled node is either the node passed into getComputedStyle, or the |
78 // PseudoElement for :before and :after if they exist. | 78 // PseudoElement for :before and :after if they exist. |
79 // FIXME: This should be styledElement since in JS getComputedStyle only wor
ks | 79 // FIXME: This should be styledElement since in JS getComputedStyle only wor
ks |
80 // on Elements, but right now editing creates these for text nodes. We shoul
d fix | 80 // on Elements, but right now editing creates these for text nodes. We shoul
d fix |
81 // that. | 81 // that. |
82 Node* styledNode() const; | 82 Node* styledNode() const; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 RefPtr<Node> m_node; | 116 RefPtr<Node> m_node; |
117 PseudoId m_pseudoElementSpecifier; | 117 PseudoId m_pseudoElementSpecifier; |
118 bool m_allowVisitedStyle; | 118 bool m_allowVisitedStyle; |
119 unsigned m_refCount; | 119 unsigned m_refCount; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace WebCore | 122 } // namespace WebCore |
123 | 123 |
124 #endif // CSSComputedStyleDeclaration_h | 124 #endif // CSSComputedStyleDeclaration_h |
OLD | NEW |