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

Side by Side Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp

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, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 else 251 else
252 changed = propertySet().removeProperty(propertyID, &result); 252 changed = propertySet().removeProperty(propertyID, &result);
253 253
254 didMutate(changed ? PropertyChanged : NoChanges); 254 didMutate(changed ? PropertyChanged : NoChanges);
255 255
256 if (changed) 256 if (changed)
257 mutationScope.enqueueMutationRecord(); 257 mutationScope.enqueueMutationRecord();
258 return result; 258 return result;
259 } 259 }
260 260
261 CSSValue* AbstractPropertySetCSSStyleDeclaration::getPropertyCSSValueInternal(CS SPropertyID propertyID) 261 const CSSValue* AbstractPropertySetCSSStyleDeclaration::getPropertyCSSValueInter nal(CSSPropertyID propertyID)
262 { 262 {
263 return propertySet().getPropertyCSSValue(propertyID); 263 return propertySet().getPropertyCSSValue(propertyID);
264 } 264 }
265 265
266 String AbstractPropertySetCSSStyleDeclaration::getPropertyValueInternal(CSSPrope rtyID propertyID) 266 String AbstractPropertySetCSSStyleDeclaration::getPropertyValueInternal(CSSPrope rtyID propertyID)
267 { 267 {
268 return propertySet().getPropertyValue(propertyID); 268 return propertySet().getPropertyValue(propertyID);
269 } 269 }
270 270
271 void AbstractPropertySetCSSStyleDeclaration::setPropertyInternal(CSSPropertyID u nresolvedProperty, const String& customPropertyName, const String& value, bool i mportant, ExceptionState&) 271 void AbstractPropertySetCSSStyleDeclaration::setPropertyInternal(CSSPropertyID u nresolvedProperty, const String& customPropertyName, const String& value, bool i mportant, ExceptionState&)
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 return m_parentElement ? &m_parentElement->document().elementSheet() : nullp tr; 369 return m_parentElement ? &m_parentElement->document().elementSheet() : nullp tr;
370 } 370 }
371 371
372 DEFINE_TRACE(InlineCSSStyleDeclaration) 372 DEFINE_TRACE(InlineCSSStyleDeclaration)
373 { 373 {
374 visitor->trace(m_parentElement); 374 visitor->trace(m_parentElement);
375 AbstractPropertySetCSSStyleDeclaration::trace(visitor); 375 AbstractPropertySetCSSStyleDeclaration::trace(visitor);
376 } 376 }
377 377
378 } // namespace blink 378 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698