Index: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
index 29afdacf531ee25ebe6c56ed38ae223ad3d7f6ea..48dc9067ae315ac65e39a974d937e036667db520 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp |
@@ -1890,7 +1890,7 @@ CSSStyleDeclaration* InspectorCSSAgent::findEffectiveDeclaration(CSSPropertyID p |
void InspectorCSSAgent::setLayoutEditorValue(ErrorString* errorString, Element* element, CSSStyleDeclaration* style, CSSPropertyID propertyId, const String& value, bool forceImportant) |
{ |
InspectorStyleSheetBase* inspectorStyleSheet = nullptr; |
- CSSRuleSourceData* sourceData = nullptr; |
+ RefPtr<CSSRuleSourceData> sourceData; |
// An absence of the parent rule means that given style is an inline style. |
if (style->parentRule()) { |
InspectorStyleSheet* styleSheet = bindStyleSheet(style->parentStyleSheet()); |
@@ -1914,7 +1914,7 @@ void InspectorCSSAgent::setLayoutEditorValue(ErrorString* errorString, Element* |
String longhand = getPropertyNameString(propertyId); |
int foundIndex = -1; |
- HeapVector<CSSPropertySourceData> properties = sourceData->styleSourceData->propertyData; |
+ Vector<CSSPropertySourceData> properties = sourceData->styleSourceData->propertyData; |
for (unsigned i = 0; i < properties.size(); ++i) { |
CSSPropertySourceData property = properties[properties.size() - i - 1]; |
String name = property.name; |
@@ -1964,7 +1964,7 @@ void InspectorCSSAgent::setLayoutEditorValue(ErrorString* errorString, Element* |
void InspectorCSSAgent::layoutEditorItemSelected(Element* element, CSSStyleDeclaration* style) |
{ |
InspectorStyleSheetBase* inspectorStyleSheet = nullptr; |
- CSSRuleSourceData* sourceData = nullptr; |
+ RefPtr<CSSRuleSourceData> sourceData; |
if (style->parentRule()) { |
InspectorStyleSheet* styleSheet = bindStyleSheet(style->parentStyleSheet()); |
inspectorStyleSheet = styleSheet; |