OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool isPropertyImplicit(const String& propertyName) OVERRIDE; | 62 virtual bool isPropertyImplicit(const String& propertyName) OVERRIDE; |
63 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionCode&) OVERRIDE; | 63 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionCode&) OVERRIDE; |
64 virtual String removeProperty(const String& propertyName, ExceptionCode&) OV
ERRIDE; | 64 virtual String removeProperty(const String& propertyName, ExceptionCode&) OV
ERRIDE; |
65 virtual String cssText() const OVERRIDE; | 65 virtual String cssText() const OVERRIDE; |
66 virtual void setCssText(const String&, ExceptionCode&) OVERRIDE; | 66 virtual void setCssText(const String&, ExceptionCode&) OVERRIDE; |
67 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) OVER
RIDE; | 67 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) OVER
RIDE; |
68 virtual String getPropertyValueInternal(CSSPropertyID) OVERRIDE; | 68 virtual String getPropertyValueInternal(CSSPropertyID) OVERRIDE; |
69 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionCode&) OVERRIDE; | 69 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionCode&) OVERRIDE; |
70 | 70 |
71 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI
DE; | 71 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI
DE; |
72 virtual PassRefPtr<StylePropertySet> copy() const OVERRIDE; | 72 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const OVERRIDE; |
73 | 73 |
74 CSSValue* cloneAndCacheForCSSOM(CSSValue*); | 74 CSSValue* cloneAndCacheForCSSOM(CSSValue*); |
75 | 75 |
76 protected: | 76 protected: |
77 enum MutationType { NoChanges, PropertyChanged }; | 77 enum MutationType { NoChanges, PropertyChanged }; |
78 virtual void willMutate() { } | 78 virtual void willMutate() { } |
79 virtual void didMutate(MutationType) { } | 79 virtual void didMutate(MutationType) { } |
80 | 80 |
81 StylePropertySet* m_propertySet; | 81 StylePropertySet* m_propertySet; |
82 OwnPtr<HashMap<CSSValue*, RefPtr<CSSValue> > > m_cssomCSSValueClones; | 82 OwnPtr<HashMap<CSSValue*, RefPtr<CSSValue> > > m_cssomCSSValueClones; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual void clearParentElement() OVERRIDE { m_parentElement = 0; } | 131 virtual void clearParentElement() OVERRIDE { m_parentElement = 0; } |
132 | 132 |
133 virtual void didMutate(MutationType) OVERRIDE; | 133 virtual void didMutate(MutationType) OVERRIDE; |
134 | 134 |
135 StyledElement* m_parentElement; | 135 StyledElement* m_parentElement; |
136 }; | 136 }; |
137 | 137 |
138 } // namespace WebCore | 138 } // namespace WebCore |
139 | 139 |
140 #endif | 140 #endif |
OLD | NEW |