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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 virtual PassRefPtr<StylePropertySet> copy() const; | 62 virtual PassRefPtr<StylePropertySet> copy() const; |
63 | 63 |
64 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout) const
; | 64 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout) const
; |
65 PassRefPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() const; | 65 PassRefPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() const; |
66 bool useFixedFontDefaultSize() const; | 66 bool useFixedFontDefaultSize() const; |
67 #if ENABLE(SVG) | 67 #if ENABLE(SVG) |
68 PassRefPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpdateLayout) co
nst; | 68 PassRefPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpdateLayout) co
nst; |
69 #endif | 69 #endif |
70 | 70 |
71 PassRefPtr<StylePropertySet> copyPropertiesInSet(const CSSPropertyID* set, u
nsigned length) const; | 71 PassRefPtr<StylePropertySet> copyPropertiesInSet(const Vector<CSSPropertyID>
&) const; |
72 | 72 |
73 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 73 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
74 | 74 |
75 private: | 75 private: |
76 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const
String&); | 76 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const
String&); |
77 | 77 |
78 // The styled node is either the node passed into getComputedStyle, or the | 78 // The styled node is either the node passed into getComputedStyle, or the |
79 // PseudoElement for :before and :after if they exist. | 79 // PseudoElement for :before and :after if they exist. |
80 // FIXME: This should be styledElement since in JS getComputedStyle only wor
ks | 80 // FIXME: This should be styledElement since in JS getComputedStyle only wor
ks |
81 // on Elements, but right now editing creates these for text nodes. We shoul
d fix | 81 // on Elements, but right now editing creates these for text nodes. We shoul
d fix |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 RefPtr<Node> m_node; | 117 RefPtr<Node> m_node; |
118 PseudoId m_pseudoElementSpecifier; | 118 PseudoId m_pseudoElementSpecifier; |
119 bool m_allowVisitedStyle; | 119 bool m_allowVisitedStyle; |
120 unsigned m_refCount; | 120 unsigned m_refCount; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace WebCore | 123 } // namespace WebCore |
124 | 124 |
125 #endif // CSSComputedStyleDeclaration_h | 125 #endif // CSSComputedStyleDeclaration_h |
OLD | NEW |