Changeset 86948 in webkit


Ignore:
Timestamp:
May 20, 2011 6:49:54 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-20 Tonis Tiigi <tonistiigi@gmail.com>

Reviewed by Pavel Feldman.

Web Inspector: console.log(XMLDocument) should be case preserving
https://bugs.webkit.org/show_bug.cgi?id=60765

Changes the XML document checking from base documents MIME type
to xmlVersion parameter.

  • inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::buildObjectForNode):
  • inspector/front-end/DOMAgent.js: (WebInspector.DOMNode):
  • inspector/front-end/ElementsTreeOutline.js: (WebInspector.ElementsTreeOutline.prototype.set rootDOMNode):
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86947 r86948  
     12011-05-20  Tonis Tiigi  <tonistiigi@gmail.com>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: console.log(XMLDocument) should be case preserving
     6        https://bugs.webkit.org/show_bug.cgi?id=60765
     7
     8        Changes the XML document checking from base documents MIME type
     9        to xmlVersion parameter.
     10
     11        * inspector/InspectorDOMAgent.cpp:
     12        (WebCore::InspectorDOMAgent::buildObjectForNode):
     13        * inspector/front-end/DOMAgent.js:
     14        (WebInspector.DOMNode):
     15        * inspector/front-end/ElementsTreeOutline.js:
     16        (WebInspector.ElementsTreeOutline.prototype.set rootDOMNode):
     17
    1182011-05-20  Mikhail Naganov  <mnaganov@chromium.org>
    219
  • trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp

    r86556 r86948  
    10951095            Document* document = static_cast<Document*>(node);
    10961096            value->setString("documentURL", documentURLString(document));
     1097            value->setString("xmlVersion", document->xmlVersion());
    10971098        }
    10981099    } else if (node->nodeType() == Node::DOCUMENT_TYPE_NODE) {
  • trunk/Source/WebCore/inspector/front-end/DOMAgent.js

    r86556 r86948  
    7676    } else if (this._nodeType === Node.DOCUMENT_NODE) {
    7777        this.documentURL = payload.documentURL;
     78        this.xmlVersion = payload.xmlVersion;
    7879    } else if (this._nodeType === Node.ATTRIBUTE_NODE) {
    7980        this.name = payload.name;
  • trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js

    r86556 r86948  
    5757        this._rootDOMNode = x;
    5858
    59         this._isXMLMimeType = !!(WebInspector.mainResource && WebInspector.mainResource.mimeType && WebInspector.mainResource.mimeType.match(/x(?:ht)?ml/i));
     59        this._isXMLMimeType = x && !!x.xmlVersion;
    6060
    6161        this.update();
Note: See TracChangeset for help on using the changeset viewer.