| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 { | 51 { |
| 52 return new CSSComputedStyleDeclaration(node, allowVisitedStyle, pseudoEl
ementName); | 52 return new CSSComputedStyleDeclaration(node, allowVisitedStyle, pseudoEl
ementName); |
| 53 } | 53 } |
| 54 ~CSSComputedStyleDeclaration() override; | 54 ~CSSComputedStyleDeclaration() override; |
| 55 | 55 |
| 56 String getPropertyValue(CSSPropertyID) const; | 56 String getPropertyValue(CSSPropertyID) const; |
| 57 bool getPropertyPriority(CSSPropertyID) const; | 57 bool getPropertyPriority(CSSPropertyID) const; |
| 58 | 58 |
| 59 MutableStylePropertySet* copyProperties() const; | 59 MutableStylePropertySet* copyProperties() const; |
| 60 | 60 |
| 61 CSSValue* getPropertyCSSValue(CSSPropertyID) const; | 61 const CSSValue* getPropertyCSSValue(CSSPropertyID) const; |
| 62 CSSValue* getPropertyCSSValue(AtomicString customPropertyName) const; | 62 const CSSValue* getPropertyCSSValue(AtomicString customPropertyName) const; |
| 63 std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVariables
() const; | 63 std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVariables
() const; |
| 64 | 64 |
| 65 CSSValue* getFontSizeCSSValuePreferringKeyword() const; | 65 const CSSValue* getFontSizeCSSValuePreferringKeyword() const; |
| 66 bool isMonospaceFont() const; | 66 bool isMonospaceFont() const; |
| 67 | 67 |
| 68 MutableStylePropertySet* copyPropertiesInSet(const Vector<CSSPropertyID>&) c
onst; | 68 MutableStylePropertySet* copyPropertiesInSet(const Vector<CSSPropertyID>&) c
onst; |
| 69 | 69 |
| 70 DECLARE_VIRTUAL_TRACE(); | 70 DECLARE_VIRTUAL_TRACE(); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 CSSComputedStyleDeclaration(Node*, bool allowVisitedStyle, const String&); | 73 CSSComputedStyleDeclaration(Node*, bool allowVisitedStyle, const String&); |
| 74 | 74 |
| 75 // The styled node is either the node passed into getComputedStyle, or the | 75 // The styled node is either the node passed into getComputedStyle, or the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 87 String getPropertyValue(const String& propertyName) override; | 87 String getPropertyValue(const String& propertyName) override; |
| 88 String getPropertyPriority(const String& propertyName) override; | 88 String getPropertyPriority(const String& propertyName) override; |
| 89 String getPropertyShorthand(const String& propertyName) override; | 89 String getPropertyShorthand(const String& propertyName) override; |
| 90 bool isPropertyImplicit(const String& propertyName) override; | 90 bool isPropertyImplicit(const String& propertyName) override; |
| 91 void setProperty(const String& propertyName, const String& value, const Stri
ng& priority, ExceptionState&) override; | 91 void setProperty(const String& propertyName, const String& value, const Stri
ng& priority, ExceptionState&) override; |
| 92 String removeProperty(const String& propertyName, ExceptionState&) override; | 92 String removeProperty(const String& propertyName, ExceptionState&) override; |
| 93 String cssFloat() const; | 93 String cssFloat() const; |
| 94 void setCSSFloat(const String&, ExceptionState&); | 94 void setCSSFloat(const String&, ExceptionState&); |
| 95 String cssText() const override; | 95 String cssText() const override; |
| 96 void setCSSText(const String&, ExceptionState&) override; | 96 void setCSSText(const String&, ExceptionState&) override; |
| 97 CSSValue* getPropertyCSSValueInternal(CSSPropertyID) override; | 97 const CSSValue* getPropertyCSSValueInternal(CSSPropertyID) override; |
| 98 String getPropertyValueInternal(CSSPropertyID) override; | 98 String getPropertyValueInternal(CSSPropertyID) override; |
| 99 void setPropertyInternal(CSSPropertyID, const String& customPropertyName, co
nst String& value, bool important, ExceptionState&) override; | 99 void setPropertyInternal(CSSPropertyID, const String& customPropertyName, co
nst String& value, bool important, ExceptionState&) override; |
| 100 | 100 |
| 101 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override; | 101 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override; |
| 102 | 102 |
| 103 Member<Node> m_node; | 103 Member<Node> m_node; |
| 104 PseudoId m_pseudoElementSpecifier; | 104 PseudoId m_pseudoElementSpecifier; |
| 105 bool m_allowVisitedStyle; | 105 bool m_allowVisitedStyle; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace blink | 108 } // namespace blink |
| 109 | 109 |
| 110 #endif // CSSComputedStyleDeclaration_h | 110 #endif // CSSComputedStyleDeclaration_h |
| OLD | NEW |