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

Unified Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h

Issue 2034013002: Make CSSComputedStyledeclaration::getPropertyCSSValue return const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_cssproperty_store_const
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h
diff --git a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h
index faa991061592116f5129bb70131e5e7d51068860..e2b4de73a0d7d4096794f3a5d5c6c68592a4add3 100644
--- a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h
+++ b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h
@@ -58,11 +58,11 @@ public:
MutableStylePropertySet* copyProperties() const;
- CSSValue* getPropertyCSSValue(CSSPropertyID) const;
- CSSValue* getPropertyCSSValue(AtomicString customPropertyName) const;
+ const CSSValue* getPropertyCSSValue(CSSPropertyID) const;
+ const CSSValue* getPropertyCSSValue(AtomicString customPropertyName) const;
std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVariables() const;
- CSSValue* getFontSizeCSSValuePreferringKeyword() const;
+ const CSSValue* getFontSizeCSSValuePreferringKeyword() const;
bool isMonospaceFont() const;
MutableStylePropertySet* copyPropertiesInSet(const Vector<CSSPropertyID>&) const;
@@ -94,7 +94,7 @@ private:
void setCSSFloat(const String&, ExceptionState&);
String cssText() const override;
void setCSSText(const String&, ExceptionState&) override;
- CSSValue* getPropertyCSSValueInternal(CSSPropertyID) override;
+ const CSSValue* getPropertyCSSValueInternal(CSSPropertyID) override;
String getPropertyValueInternal(CSSPropertyID) override;
void setPropertyInternal(CSSPropertyID, const String& customPropertyName, const String& value, bool important, ExceptionState&) override;

Powered by Google App Engine
This is Rietveld 408576698