| 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 04a64fc4c7a0eeef79cd52b6e0f34d65fe4be1e4..a0f087a05c1560d4349f2c68cc42cc4fa0191088 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"
|
| @@ -797,7 +798,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);
|
| }
|
| }
|
|
|