Index: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
index bad4b224ad4551de0fc1d205bf840759fa058929..e49c67ae5978a43d6428914b444c665a3414115e 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
@@ -183,7 +183,7 @@ static PassRefPtr<JSONObject> ensurePropertyObject(PassRefPtr<JSONObject> object |
{ |
JSONObject::iterator it = object->find(propertyName); |
if (it != object->end()) |
- return it->value->asObject(); |
+ return JSONObject::cast(it->value); |
RefPtr<JSONObject> result = JSONObject::create(); |
object->setObject(propertyName, result); |
@@ -537,7 +537,7 @@ PassRefPtr<JSONObject> InspectorDOMDebuggerAgent::preparePauseOnNativeEventData( |
if (it == breakpoints->end()) |
return nullptr; |
bool match = false; |
- RefPtr<JSONObject> breakpointsByTarget = it->value->asObject(); |
+ RefPtr<JSONObject> breakpointsByTarget = JSONObject::cast(it->value); |
breakpointsByTarget->getBoolean(DOMDebuggerAgentState::eventTargetAny, &match); |
if (!match && targetName) |
breakpointsByTarget->getBoolean(targetName->lower(), &match); |