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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 2035373002: Made StylePropertySet::getPropertyCSSValue return a const CSSValue* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_fix_cssparser_font_face_descriptor_to_return_const
Patch Set: Rebase Created 4 years, 5 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/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 45b5028a31b7127c88cd46f228776c23da61355e..f57032398ac7fe8921a60130037fe148d16b3da4 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -797,7 +797,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForElement(Element* element, const
if (element->hasTagName(HTMLNames::summaryTag)) {
MatchedPropertiesRange properties = collector.matchedResult().authorRules();
for (auto it = properties.begin(); it != properties.end(); ++it) {
- CSSValue* value = it->properties->getPropertyCSSValue(CSSPropertyDisplay);
+ const CSSValue* value = it->properties->getPropertyCSSValue(CSSPropertyDisplay);
if (value && value->isPrimitiveValue() && toCSSPrimitiveValue(*value).getValueID() == CSSValueBlock)
UseCounter::count(element->document(), UseCounter::SummaryElementWithDisplayBlockAuthorRule);
}

Powered by Google App Engine
This is Rietveld 408576698