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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const Vector<CSSPropertyID>&) const; | 74 const Vector<CSSPropertyID>&) const; |
75 | 75 |
76 DECLARE_VIRTUAL_TRACE(); | 76 DECLARE_VIRTUAL_TRACE(); |
77 | 77 |
78 private: | 78 private: |
79 CSSComputedStyleDeclaration(Node*, bool allowVisitedStyle, const String&); | 79 CSSComputedStyleDeclaration(Node*, bool allowVisitedStyle, const String&); |
80 | 80 |
81 // 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 |
82 // PseudoElement for :before and :after if they exist. | 82 // PseudoElement for :before and :after if they exist. |
83 // FIXME: This should be styledElement since in JS getComputedStyle only works | 83 // FIXME: This should be styledElement since in JS getComputedStyle only works |
84 // on Elements, but right now editing creates these for text nodes. We should
fix | 84 // on Elements, but right now editing creates these for text nodes. We should |
85 // that. | 85 // fix that. |
86 Node* styledNode() const; | 86 Node* styledNode() const; |
87 | 87 |
88 // CSSOM functions. Don't make these public. | 88 // CSSOM functions. Don't make these public. |
89 CSSRule* parentRule() const override; | 89 CSSRule* parentRule() const override; |
90 unsigned length() const override; | 90 unsigned length() const override; |
91 String item(unsigned index) const override; | 91 String item(unsigned index) const override; |
92 const ComputedStyle* computeComputedStyle() const; | 92 const ComputedStyle* computeComputedStyle() const; |
93 String getPropertyValue(const String& propertyName) override; | 93 String getPropertyValue(const String& propertyName) override; |
94 String getPropertyPriority(const String& propertyName) override; | 94 String getPropertyPriority(const String& propertyName) override; |
95 String getPropertyShorthand(const String& propertyName) override; | 95 String getPropertyShorthand(const String& propertyName) override; |
(...skipping 20 matching lines...) Expand all Loading... |
116 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override; | 116 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override; |
117 | 117 |
118 Member<Node> m_node; | 118 Member<Node> m_node; |
119 PseudoId m_pseudoElementSpecifier; | 119 PseudoId m_pseudoElementSpecifier; |
120 bool m_allowVisitedStyle; | 120 bool m_allowVisitedStyle; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace blink | 123 } // namespace blink |
124 | 124 |
125 #endif // CSSComputedStyleDeclaration_h | 125 #endif // CSSComputedStyleDeclaration_h |
OLD | NEW |