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 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 void write(const SegmentedString& text, Document* ownerDocument = 0); | 598 void write(const SegmentedString& text, Document* ownerDocument = 0); |
599 void write(const String& text, Document* ownerDocument = 0); | 599 void write(const String& text, Document* ownerDocument = 0); |
600 void writeln(const String& text, Document* ownerDocument = 0); | 600 void writeln(const String& text, Document* ownerDocument = 0); |
601 | 601 |
602 bool wellFormed() const { return m_wellFormed; } | 602 bool wellFormed() const { return m_wellFormed; } |
603 | 603 |
604 const KURL& url() const { return m_url; } | 604 const KURL& url() const { return m_url; } |
605 void setURL(const KURL&); | 605 void setURL(const KURL&); |
606 | 606 |
607 const KURL& baseURL() const { return m_baseURL; } | 607 const KURL& baseURL() const { return m_baseURL; } |
| 608 void setBaseURLOverride(const KURL&); |
| 609 const KURL& baseURLOverride() const { return m_baseURLOverride; } |
608 const String& baseTarget() const { return m_baseTarget; } | 610 const String& baseTarget() const { return m_baseTarget; } |
609 void processBaseElement(); | 611 void processBaseElement(); |
610 | 612 |
611 KURL completeURL(const String&) const; | 613 KURL completeURL(const String&) const; |
612 | 614 |
613 virtual String userAgent(const KURL&) const; | 615 virtual String userAgent(const KURL&) const; |
614 | 616 |
615 virtual void disableEval(); | 617 virtual void disableEval(); |
616 | 618 |
617 CSSStyleSheet* pageUserSheet(); | 619 CSSStyleSheet* pageUserSheet(); |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 mutable RefPtr<CSSPrimitiveValueCache> m_cssPrimitiveValueCache; | 1169 mutable RefPtr<CSSPrimitiveValueCache> m_cssPrimitiveValueCache; |
1168 | 1170 |
1169 Frame* m_frame; | 1171 Frame* m_frame; |
1170 OwnPtr<CachedResourceLoader> m_cachedResourceLoader; | 1172 OwnPtr<CachedResourceLoader> m_cachedResourceLoader; |
1171 RefPtr<DocumentParser> m_parser; | 1173 RefPtr<DocumentParser> m_parser; |
1172 bool m_wellFormed; | 1174 bool m_wellFormed; |
1173 | 1175 |
1174 // Document URLs. | 1176 // Document URLs. |
1175 KURL m_url; // Document.URL: The URL from which this document was retrieved. | 1177 KURL m_url; // Document.URL: The URL from which this document was retrieved. |
1176 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. | 1178 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. |
| 1179 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove
m_baseURL (but not m_baseElementURL). |
1177 KURL m_baseElementURL; // The URL set by the <base> element. | 1180 KURL m_baseElementURL; // The URL set by the <base> element. |
1178 KURL m_cookieURL; // The URL to use for cookie access. | 1181 KURL m_cookieURL; // The URL to use for cookie access. |
1179 KURL m_firstPartyForCookies; // The policy URL for third-party cookie blocki
ng. | 1182 KURL m_firstPartyForCookies; // The policy URL for third-party cookie blocki
ng. |
1180 | 1183 |
1181 // Document.documentURI: | 1184 // Document.documentURI: |
1182 // Although URL-like, Document.documentURI can actually be set to any | 1185 // Although URL-like, Document.documentURI can actually be set to any |
1183 // string by content. Document.documentURI affects m_baseURL unless the | 1186 // string by content. Document.documentURI affects m_baseURL unless the |
1184 // document contains a <base> element, in which case the <base> element | 1187 // document contains a <base> element, in which case the <base> element |
1185 // takes precedence. | 1188 // takes precedence. |
1186 String m_documentURI; | 1189 String m_documentURI; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 if (m_document) | 1432 if (m_document) |
1430 m_document->guardRef(); | 1433 m_document->guardRef(); |
1431 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 1434 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
1432 trackForDebugging(); | 1435 trackForDebugging(); |
1433 #endif | 1436 #endif |
1434 } | 1437 } |
1435 | 1438 |
1436 } // namespace WebCore | 1439 } // namespace WebCore |
1437 | 1440 |
1438 #endif // Document_h | 1441 #endif // Document_h |
OLD | NEW |