Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Side by Side Diff: Source/core/css/PropertySetCSSStyleDeclaration.h

Issue 15746004: Rename/tweak some StylePropertySet/CSSStyleDeclaration copying functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.h ('k') | Source/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698