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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 Document* enteredDocument = nullptr, | 586 Document* enteredDocument = nullptr, |
587 ExceptionState& = ASSERT_NO_EXCEPTION); | 587 ExceptionState& = ASSERT_NO_EXCEPTION); |
588 void writeln(const String& text, | 588 void writeln(const String& text, |
589 Document* enteredDocument = nullptr, | 589 Document* enteredDocument = nullptr, |
590 ExceptionState& = ASSERT_NO_EXCEPTION); | 590 ExceptionState& = ASSERT_NO_EXCEPTION); |
591 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); | 591 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); |
592 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); | 592 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); |
593 | 593 |
594 bool wellFormed() const { return m_wellFormed; } | 594 bool wellFormed() const { return m_wellFormed; } |
595 | 595 |
| 596 // Return the document URL, or an empty URL if it's unavailable. |
| 597 // This is not an implementation of web-exposed Document.prototype.URL. |
596 const KURL& url() const { return m_url; } | 598 const KURL& url() const { return m_url; } |
597 void setURL(const KURL&); | 599 void setURL(const KURL&); |
598 | 600 |
| 601 // Bind the url to document.url, if unavailable bind to about:blank. |
| 602 KURL urlForBinding(); |
| 603 |
599 // To understand how these concepts relate to one another, please see the | 604 // To understand how these concepts relate to one another, please see the |
600 // comments surrounding their declaration. | 605 // comments surrounding their declaration. |
601 const KURL& baseURL() const { return m_baseURL; } | 606 const KURL& baseURL() const { return m_baseURL; } |
602 void setBaseURLOverride(const KURL&); | 607 void setBaseURLOverride(const KURL&); |
603 const KURL& baseURLOverride() const { return m_baseURLOverride; } | 608 const KURL& baseURLOverride() const { return m_baseURLOverride; } |
604 KURL validBaseElementURL() const; | 609 KURL validBaseElementURL() const; |
605 const AtomicString& baseTarget() const { return m_baseTarget; } | 610 const AtomicString& baseTarget() const { return m_baseTarget; } |
606 void processBaseElement(); | 611 void processBaseElement(); |
607 | 612 |
608 // Creates URL based on passed relative url and this documents base URL. | 613 // Creates URL based on passed relative url and this documents base URL. |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1710 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1706 | 1711 |
1707 } // namespace blink | 1712 } // namespace blink |
1708 | 1713 |
1709 #ifndef NDEBUG | 1714 #ifndef NDEBUG |
1710 // Outside the WebCore namespace for ease of invocation from gdb. | 1715 // Outside the WebCore namespace for ease of invocation from gdb. |
1711 CORE_EXPORT void showLiveDocumentInstances(); | 1716 CORE_EXPORT void showLiveDocumentInstances(); |
1712 #endif | 1717 #endif |
1713 | 1718 |
1714 #endif // Document_h | 1719 #endif // Document_h |
OLD | NEW |