Index: Source/web/PluginPlaceholderImplTest.cpp |
diff --git a/Source/web/PluginPlaceholderImplTest.cpp b/Source/web/PluginPlaceholderImplTest.cpp |
index fdb0c75328f9ca02eec0703d36034d14d98bb1ba..afb4f982dca8fb782bf5edd9851115abf6e5e7d2 100644 |
--- a/Source/web/PluginPlaceholderImplTest.cpp |
+++ b/Source/web/PluginPlaceholderImplTest.cpp |
@@ -99,8 +99,8 @@ bool isHiddenWithInlineStyle(Element* element) |
{ |
if (!element->inlineStyle()) |
return false; |
- NullableCSSValue value = element->inlineStyle()->getPropertyCSSValue(CSSPropertyDisplay); |
- return value && value->isPrimitiveValue() && toCSSPrimitiveValue(*value).getValueID() == CSSValueNone; |
+ const NullableCSSValue& value = element->inlineStyle()->getPropertyCSSValue(CSSPropertyDisplay); |
+ return value && value->isPrimitiveValue() && toCSSPrimitiveValue(value).getValueID() == CSSValueNone; |
} |
TEST_F(PluginPlaceholderImplTest, Closeable) |