OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 } | 1120 } |
1121 | 1121 |
1122 m_xmlVersion = version; | 1122 m_xmlVersion = version; |
1123 } | 1123 } |
1124 | 1124 |
1125 void Document::setXMLStandalone(bool standalone, ExceptionState& exceptionState) | 1125 void Document::setXMLStandalone(bool standalone, ExceptionState& exceptionState) |
1126 { | 1126 { |
1127 m_xmlStandalone = standalone ? Standalone : NotStandalone; | 1127 m_xmlStandalone = standalone ? Standalone : NotStandalone; |
1128 } | 1128 } |
1129 | 1129 |
1130 KURL Document::baseURI() const | |
1131 { | |
1132 return m_baseURL; | |
1133 } | |
1134 | |
1135 void Document::setContent(const String& content) | 1130 void Document::setContent(const String& content) |
1136 { | 1131 { |
1137 open(); | 1132 open(); |
1138 m_parser->append(content); | 1133 m_parser->append(content); |
1139 close(); | 1134 close(); |
1140 } | 1135 } |
1141 | 1136 |
1142 String Document::suggestedMIMEType() const | 1137 String Document::suggestedMIMEType() const |
1143 { | 1138 { |
1144 if (isXMLDocument()) { | 1139 if (isXMLDocument()) { |
(...skipping 4709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5854 #ifndef NDEBUG | 5849 #ifndef NDEBUG |
5855 using namespace blink; | 5850 using namespace blink; |
5856 void showLiveDocumentInstances() | 5851 void showLiveDocumentInstances() |
5857 { | 5852 { |
5858 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5853 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5859 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5854 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5860 for (Document* document : set) | 5855 for (Document* document : set) |
5861 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5856 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5862 } | 5857 } |
5863 #endif | 5858 #endif |
OLD | NEW |