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 2050cb30cec6e5fa246fe79de0a0fbaed95c187b..5ed155488f9235d58b8be2e53aa95fb66d321366 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
@@ -183,7 +183,7 @@ |
{ |
JSONObject::iterator it = object->find(propertyName); |
if (it != object->end()) |
- return JSONObject::cast(it->value); |
+ return it->value->asObject(); |
RefPtr<JSONObject> result = JSONObject::create(); |
object->setObject(propertyName, result); |
@@ -537,7 +537,7 @@ |
if (it == breakpoints->end()) |
return nullptr; |
bool match = false; |
- RefPtr<JSONObject> breakpointsByTarget = JSONObject::cast(it->value); |
+ RefPtr<JSONObject> breakpointsByTarget = it->value->asObject(); |
breakpointsByTarget->getBoolean(DOMDebuggerAgentState::eventTargetAny, &match); |
if (!match && targetName) |
breakpointsByTarget->getBoolean(targetName->lower(), &match); |