X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Finspector%2FInjectedScript.cpp;h=3c9e690515316653b67bd7ec9295befda7a01f78;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=cfe7b56cbf4650f4dc4ad9d54860155f0bc39f52;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/inspector/InjectedScript.cpp b/src/third_party/WebKit/Source/core/inspector/InjectedScript.cpp index cfe7b56..3c9e690 100644 --- a/src/third_party/WebKit/Source/core/inspector/InjectedScript.cpp +++ b/src/third_party/WebKit/Source/core/inspector/InjectedScript.cpp @@ -211,7 +211,7 @@ void InjectedScript::getInternalProperties(ErrorString* errorString, const Strin Node* InjectedScript::nodeForObjectId(const String& objectId) { - if (hasNoValue() || !canAccessInspectedWindow()) + if (isEmpty() || !canAccessInspectedWindow()) return 0; ScriptFunctionCall function(injectedScriptObject(), "nodeForObjectId"); @@ -234,7 +234,7 @@ void InjectedScript::releaseObject(const String& objectId) PassRefPtr > InjectedScript::wrapCallFrames(const ScriptValue& callFrames, int asyncOrdinal) { - ASSERT(!hasNoValue()); + ASSERT(!isEmpty()); ScriptFunctionCall function(injectedScriptObject(), "wrapCallFrames"); function.appendArgument(callFrames); function.appendArgument(asyncOrdinal); @@ -249,7 +249,7 @@ PassRefPtr > InjectedScript::wrapCallFrames(const ScriptValue& PassRefPtr InjectedScript::wrapObject(const ScriptValue& value, const String& groupName, bool generatePreview) const { - ASSERT(!hasNoValue()); + ASSERT(!isEmpty()); ScriptFunctionCall wrapFunction(injectedScriptObject(), "wrapObject"); wrapFunction.appendArgument(value); wrapFunction.appendArgument(groupName); @@ -265,11 +265,11 @@ PassRefPtr InjectedScript::wrapObject(const PassRefPtr InjectedScript::wrapTable(const ScriptValue& table, const ScriptValue& columns) const { - ASSERT(!hasNoValue()); + ASSERT(!isEmpty()); ScriptFunctionCall wrapFunction(injectedScriptObject(), "wrapTable"); wrapFunction.appendArgument(canAccessInspectedWindow()); wrapFunction.appendArgument(table); - if (columns.hasNoValue()) + if (columns.isEmpty()) wrapFunction.appendArgument(false); else wrapFunction.appendArgument(columns); @@ -288,7 +288,7 @@ PassRefPtr InjectedScript::wrapNode(Node* no ScriptValue InjectedScript::findObjectById(const String& objectId) const { - ASSERT(!hasNoValue()); + ASSERT(!isEmpty()); ScriptFunctionCall function(injectedScriptObject(), "findObjectById"); function.appendArgument(objectId); @@ -306,7 +306,7 @@ ScriptValue InjectedScript::findCallFrameById(ErrorString* errorString, const Sc bool hadException = false; ScriptValue resultValue = callFunctionWithEvalEnabled(function, hadException); ASSERT(!hadException); - if (hadException || resultValue.hasNoValue() || !resultValue.isObject()) { + if (hadException || resultValue.isEmpty() || !resultValue.isObject()) { *errorString = "Internal error"; return ScriptValue(); } @@ -315,7 +315,7 @@ ScriptValue InjectedScript::findCallFrameById(ErrorString* errorString, const Sc void InjectedScript::inspectNode(Node* node) { - ASSERT(!hasNoValue()); + ASSERT(!isEmpty()); ScriptFunctionCall function(injectedScriptObject(), "inspectNode"); function.appendArgument(nodeAsScriptValue(node)); RefPtr result; @@ -324,7 +324,7 @@ void InjectedScript::inspectNode(Node* node) void InjectedScript::releaseObjectGroup(const String& objectGroup) { - ASSERT(!hasNoValue()); + ASSERT(!isEmpty()); ScriptFunctionCall releaseFunction(injectedScriptObject(), "releaseObjectGroup"); releaseFunction.appendArgument(objectGroup); bool hadException = false;