Node* InjectedScript::nodeForObjectId(const String& objectId)
{
- if (hasNoValue() || !canAccessInspectedWindow())
+ if (isEmpty() || !canAccessInspectedWindow())
return 0;
ScriptFunctionCall function(injectedScriptObject(), "nodeForObjectId");
PassRefPtr<Array<CallFrame> > InjectedScript::wrapCallFrames(const ScriptValue& callFrames, int asyncOrdinal)
{
- ASSERT(!hasNoValue());
+ ASSERT(!isEmpty());
ScriptFunctionCall function(injectedScriptObject(), "wrapCallFrames");
function.appendArgument(callFrames);
function.appendArgument(asyncOrdinal);
PassRefPtr<TypeBuilder::Runtime::RemoteObject> 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);
PassRefPtr<TypeBuilder::Runtime::RemoteObject> 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);
ScriptValue InjectedScript::findObjectById(const String& objectId) const
{
- ASSERT(!hasNoValue());
+ ASSERT(!isEmpty());
ScriptFunctionCall function(injectedScriptObject(), "findObjectById");
function.appendArgument(objectId);
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();
}
void InjectedScript::inspectNode(Node* node)
{
- ASSERT(!hasNoValue());
+ ASSERT(!isEmpty());
ScriptFunctionCall function(injectedScriptObject(), "inspectNode");
function.appendArgument(nodeAsScriptValue(node));
RefPtr<JSONValue> result;
void InjectedScript::releaseObjectGroup(const String& objectGroup)
{
- ASSERT(!hasNoValue());
+ ASSERT(!isEmpty());
ScriptFunctionCall releaseFunction(injectedScriptObject(), "releaseObjectGroup");
releaseFunction.appendArgument(objectGroup);
bool hadException = false;