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 3826ea04a73be0c8b51b002ec5b5a80de0699c71..71ce377909eaa04071e3e5f687f230a8c8fae89d 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
@@ -45,6 +45,7 @@ |
#include "core/css/CSSCustomIdentValue.h" |
#include "core/css/CSSDefaultStyleSheets.h" |
#include "core/css/CSSFontSelector.h" |
+#include "core/css/CSSIdentifierValue.h" |
#include "core/css/CSSKeyframeRule.h" |
#include "core/css/CSSKeyframesRule.h" |
#include "core/css/CSSReflectValue.h" |
@@ -799,7 +800,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForElement(Element* element, const |
MatchedPropertiesRange properties = collector.matchedResult().authorRules(); |
for (auto it = properties.begin(); it != properties.end(); ++it) { |
const CSSValue* value = it->properties->getPropertyCSSValue(CSSPropertyDisplay); |
- if (value && value->isPrimitiveValue() && toCSSPrimitiveValue(*value).getValueID() == CSSValueBlock) |
+ if (value && value->isIdentifierValue() && toCSSIdentifierValue(*value).getValueID() == CSSValueBlock) |
UseCounter::count(element->document(), UseCounter::SummaryElementWithDisplayBlockAuthorRule); |
} |
} |