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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleDeclaration.h

Issue 2046463003: Resubmission of sashab's patch: Make CSSComputedStyledeclaration::getPropertyCSSValue return const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing const Created 4 years, 6 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual String getPropertyValue(const String& propertyName) = 0; 58 virtual String getPropertyValue(const String& propertyName) = 0;
59 virtual String getPropertyPriority(const String& propertyName) = 0; 59 virtual String getPropertyPriority(const String& propertyName) = 0;
60 virtual String getPropertyShorthand(const String& propertyName) = 0; 60 virtual String getPropertyShorthand(const String& propertyName) = 0;
61 virtual bool isPropertyImplicit(const String& propertyName) = 0; 61 virtual bool isPropertyImplicit(const String& propertyName) = 0;
62 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) = 0; 62 virtual void setProperty(const String& propertyName, const String& value, co nst String& priority, ExceptionState&) = 0;
63 virtual String removeProperty(const String& propertyName, ExceptionState&) = 0; 63 virtual String removeProperty(const String& propertyName, ExceptionState&) = 0;
64 64
65 // CSSPropertyID versions of the CSSOM functions to support bindings and edi ting. 65 // CSSPropertyID versions of the CSSOM functions to support bindings and edi ting.
66 // Use the non-virtual methods in the concrete subclasses when possible. 66 // Use the non-virtual methods in the concrete subclasses when possible.
67 // 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. 67 // 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.
68 virtual CSSValue* getPropertyCSSValueInternal(CSSPropertyID) = 0; 68 virtual const CSSValue* getPropertyCSSValueInternal(CSSPropertyID) = 0;
69 virtual String getPropertyValueInternal(CSSPropertyID) = 0; 69 virtual String getPropertyValueInternal(CSSPropertyID) = 0;
70 virtual void setPropertyInternal(CSSPropertyID, const String& propertyValue, const String& value, bool important, ExceptionState&) = 0; 70 virtual void setPropertyInternal(CSSPropertyID, const String& propertyValue, const String& value, bool important, ExceptionState&) = 0;
71 71
72 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; 72 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0;
73 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } 73 virtual CSSStyleSheet* parentStyleSheet() const { return 0; }
74 74
75 DEFINE_INLINE_VIRTUAL_TRACE() { } 75 DEFINE_INLINE_VIRTUAL_TRACE() { }
76 76
77 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 77 DECLARE_VIRTUAL_TRACE_WRAPPERS();
78 78
79 protected: 79 protected:
80 CSSStyleDeclaration() { } 80 CSSStyleDeclaration() { }
81 }; 81 };
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // CSSStyleDeclaration_h 85 #endif // CSSStyleDeclaration_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | third_party/WebKit/Source/core/css/CSSValueList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698