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

Side by Side Diff: Source/core/css/CSSStyleDeclaration.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@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 Library General Public 6 * modify it under the terms of the GNU Library 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 13 matching lines...) Expand all
24 #include "CSSPropertyNames.h" 24 #include "CSSPropertyNames.h"
25 #include "bindings/v8/ScriptWrappable.h" 25 #include "bindings/v8/ScriptWrappable.h"
26 #include <wtf/Forward.h> 26 #include <wtf/Forward.h>
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class CSSProperty; 30 class CSSProperty;
31 class CSSRule; 31 class CSSRule;
32 class CSSStyleSheet; 32 class CSSStyleSheet;
33 class CSSValue; 33 class CSSValue;
34 class MutableStylePropertySet;
34 class StylePropertySet; 35 class StylePropertySet;
35 class StyledElement; 36 class StyledElement;
36 37
37 typedef int ExceptionCode; 38 typedef int ExceptionCode;
38 39
39 class CSSStyleDeclaration : public ScriptWrappable { 40 class CSSStyleDeclaration : public ScriptWrappable {
40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED; 41 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED;
41 public: 42 public:
42 virtual ~CSSStyleDeclaration() { } 43 virtual ~CSSStyleDeclaration() { }
43 44
(...skipping 13 matching lines...) Expand all
57 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionCode&) = 0; 58 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionCode&) = 0;
58 virtual String removeProperty(const String& propertyName, ExceptionCode&) = 0; 59 virtual String removeProperty(const String& propertyName, ExceptionCode&) = 0;
59 60
60 // CSSPropertyID versions of the CSSOM functions to support bindings and edi ting. 61 // CSSPropertyID versions of the CSSOM functions to support bindings and edi ting.
61 // Use the non-virtual methods in the concrete subclasses when possible. 62 // Use the non-virtual methods in the concrete subclasses when possible.
62 // The CSSValue returned by this function should not be exposed to the web a s it may be used by multiple documents at the same time. 63 // The CSSValue returned by this function should not be exposed to the web a s it may be used by multiple documents at the same time.
63 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; 64 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0;
64 virtual String getPropertyValueInternal(CSSPropertyID) = 0; 65 virtual String getPropertyValueInternal(CSSPropertyID) = 0;
65 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im portant, ExceptionCode&) = 0; 66 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im portant, ExceptionCode&) = 0;
66 67
67 virtual PassRefPtr<StylePropertySet> copy() const = 0; 68 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const = 0;
68 69
69 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; 70 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0;
70 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } 71 virtual CSSStyleSheet* parentStyleSheet() const { return 0; }
71 72
72 virtual void reportMemoryUsage(MemoryObjectInfo*) const = 0; 73 virtual void reportMemoryUsage(MemoryObjectInfo*) const = 0;
73 74
74 protected: 75 protected:
75 CSSStyleDeclaration() 76 CSSStyleDeclaration()
76 { 77 {
77 ScriptWrappable::init(this); 78 ScriptWrappable::init(this);
78 } 79 }
79 }; 80 };
80 81
81 } // namespace WebCore 82 } // namespace WebCore
82 83
83 #endif // CSSStyleDeclaration_h 84 #endif // CSSStyleDeclaration_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/PropertySetCSSStyleDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698