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, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 void write(const String& text, Document* ownerDocument = 0); | 525 void write(const String& text, Document* ownerDocument = 0); |
526 void writeln(const String& text, Document* ownerDocument = 0); | 526 void writeln(const String& text, Document* ownerDocument = 0); |
527 | 527 |
528 bool wellFormed() const { return m_wellFormed; } | 528 bool wellFormed() const { return m_wellFormed; } |
529 | 529 |
530 const KURL& url() const { return m_url; } | 530 const KURL& url() const { return m_url; } |
531 void setURL(const KURL&); | 531 void setURL(const KURL&); |
532 | 532 |
533 // To understand how these concepts relate to one another, please see the | 533 // To understand how these concepts relate to one another, please see the |
534 // comments surrounding their declaration. | 534 // comments surrounding their declaration. |
| 535 virtual const KURL& baseURL() const OVERRIDE FINAL { return m_baseURL; } |
535 void setBaseURLOverride(const KURL&); | 536 void setBaseURLOverride(const KURL&); |
536 const KURL& baseURLOverride() const { return m_baseURLOverride; } | 537 const KURL& baseURLOverride() const { return m_baseURLOverride; } |
537 const KURL& baseElementURL() const { return m_baseElementURL; } | 538 const KURL& baseElementURL() const { return m_baseElementURL; } |
538 const AtomicString& baseTarget() const { return m_baseTarget; } | 539 const AtomicString& baseTarget() const { return m_baseTarget; } |
539 void processBaseElement(); | 540 void processBaseElement(); |
540 | 541 |
541 using TreeScope::completeURL; // Disambiguate between ExecutionContext and T
reeScope methods. | 542 using TreeScope::completeURL; // Disambiguate between ExecutionContext and T
reeScope methods. |
542 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con
st; | 543 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con
st; |
543 | 544 |
544 virtual String userAgent(const KURL&) const OVERRIDE FINAL; | 545 virtual String userAgent(const KURL&) const OVERRIDE FINAL; |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 | 1112 |
1112 RefPtr<ResourceFetcher> m_fetcher; | 1113 RefPtr<ResourceFetcher> m_fetcher; |
1113 RefPtr<DocumentParser> m_parser; | 1114 RefPtr<DocumentParser> m_parser; |
1114 unsigned m_activeParserCount; | 1115 unsigned m_activeParserCount; |
1115 RefPtr<ContextFeatures> m_contextFeatures; | 1116 RefPtr<ContextFeatures> m_contextFeatures; |
1116 | 1117 |
1117 bool m_wellFormed; | 1118 bool m_wellFormed; |
1118 | 1119 |
1119 // Document URLs. | 1120 // Document URLs. |
1120 KURL m_url; // Document.URL: The URL from which this document was retrieved. | 1121 KURL m_url; // Document.URL: The URL from which this document was retrieved. |
1121 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove
r TreeScope::baseURL() (but not m_baseElementURL). | 1122 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. |
| 1123 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove
r m_baseURL (but not m_baseElementURL). |
1122 KURL m_baseElementURL; // The URL set by the <base> element. | 1124 KURL m_baseElementURL; // The URL set by the <base> element. |
1123 KURL m_cookieURL; // The URL to use for cookie access. | 1125 KURL m_cookieURL; // The URL to use for cookie access. |
1124 | 1126 |
1125 AtomicString m_baseTarget; | 1127 AtomicString m_baseTarget; |
1126 | 1128 |
1127 RefPtr<DocumentType> m_docType; | 1129 RefPtr<DocumentType> m_docType; |
1128 OwnPtr<DOMImplementation> m_implementation; | 1130 OwnPtr<DOMImplementation> m_implementation; |
1129 | 1131 |
1130 RefPtr<CSSStyleSheet> m_elemSheet; | 1132 RefPtr<CSSStyleSheet> m_elemSheet; |
1131 | 1133 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 inline bool Node::isDocumentNode() const | 1346 inline bool Node::isDocumentNode() const |
1345 { | 1347 { |
1346 return this == document(); | 1348 return this == document(); |
1347 } | 1349 } |
1348 | 1350 |
1349 Node* eventTargetNodeForDocument(Document*); | 1351 Node* eventTargetNodeForDocument(Document*); |
1350 | 1352 |
1351 } // namespace WebCore | 1353 } // namespace WebCore |
1352 | 1354 |
1353 #endif // Document_h | 1355 #endif // Document_h |
OLD | NEW |