Lines Matching refs:errorString

400 Node* InspectorDOMAgent::assertNode(ErrorString* errorString, int nodeId)
404 *errorString = "Could not find node with given id";
410 Element* InspectorDOMAgent::assertElement(ErrorString* errorString, int nodeId)
412 Node* node = assertNode(errorString, nodeId);
417 *errorString = "Node is not an Element";
424 HTMLElement* InspectorDOMAgent::assertHTMLElement(ErrorString* errorString, int nodeId)
426 Element* element = assertElement(errorString, nodeId);
431 *errorString = "Node is not an HTML Element";
489 void InspectorDOMAgent::querySelector(ErrorString* errorString, int nodeId, const String& selectors, int* elementId)
492 Node* node = assertNode(errorString, nodeId);
499 *errorString = "DOM Error while querying";
507 void InspectorDOMAgent::querySelectorAll(ErrorString* errorString, int nodeId, const String& selectors, RefPtr<InspectorArray>* result)
509 Node* node = assertNode(errorString, nodeId);
516 *errorString = "DOM Error while querying";
575 void InspectorDOMAgent::setAttribute(ErrorString* errorString, int elementId, const String& name, const String& value)
577 Element* element = assertElement(errorString, elementId);
582 *errorString = "Exception while setting attribute value";
586 void InspectorDOMAgent::removeAttribute(ErrorString* errorString, int elementId, const String& name)
588 Element* element = assertElement(errorString, elementId);
593 *errorString = "Exception while removing attribute";
597 void InspectorDOMAgent::removeNode(ErrorString* errorString, int nodeId)
599 Node* node = assertNode(errorString, nodeId);
605 *errorString = "Can not remove detached node";
612 *errorString = "Could not remove node due to DOM exception";
652 void InspectorDOMAgent::getOuterHTML(ErrorString* errorString, int nodeId, WTF::String* outerHTML)
654 HTMLElement* element = assertHTMLElement(errorString, nodeId);
659 void InspectorDOMAgent::setOuterHTML(ErrorString* errorString, int nodeId, const String& outerHTML, int* newId)
661 HTMLElement* htmlElement = assertHTMLElement(errorString, nodeId);
696 void InspectorDOMAgent::setNodeValue(ErrorString* errorString, int nodeId, const String& value)
698 Node* node = assertNode(errorString, nodeId);
703 *errorString = "Can only set value of text nodes";
711 *errorString = "DOM Error while setting the node value";