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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 // Depending on baseURLOverride value it is possible that parent document | 621 // Depending on baseURLOverride value it is possible that parent document |
622 // base URL will be used instead of it. See baseURLForOverride function | 622 // base URL will be used instead of it. See baseURLForOverride function |
623 // for details. | 623 // for details. |
624 KURL CompleteURLWithOverride(const String&, | 624 KURL CompleteURLWithOverride(const String&, |
625 const KURL& base_url_override) const; | 625 const KURL& base_url_override) const; |
626 // Determines which base URL should be used given specified override. | 626 // Determines which base URL should be used given specified override. |
627 // If override is empty or is about:blank url and parent document exists | 627 // If override is empty or is about:blank url and parent document exists |
628 // base URL of parent will be returned, passed base URL override otherwise. | 628 // base URL of parent will be returned, passed base URL override otherwise. |
629 const KURL& BaseURLForOverride(const KURL& base_url_override) const; | 629 const KURL& BaseURLForOverride(const KURL& base_url_override) const; |
630 | 630 |
| 631 // Determines whether a new document should take on the same origin as that of |
| 632 // the document which created it. |
| 633 static bool ShouldInheritSecurityOriginFromOwner(const KURL&); |
| 634 |
631 String UserAgent() const final; | 635 String UserAgent() const final; |
632 void DisableEval(const String& error_message) final; | 636 void DisableEval(const String& error_message) final; |
633 | 637 |
634 CSSStyleSheet& ElementSheet(); | 638 CSSStyleSheet& ElementSheet(); |
635 | 639 |
636 virtual DocumentParser* CreateParser(); | 640 virtual DocumentParser* CreateParser(); |
637 DocumentParser* Parser() const { return parser_.Get(); } | 641 DocumentParser* Parser() const { return parser_.Get(); } |
638 ScriptableDocumentParser* GetScriptableDocumentParser() const; | 642 ScriptableDocumentParser* GetScriptableDocumentParser() const; |
639 | 643 |
640 // FinishingPrinting denotes that the non-printing layout state is being | 644 // FinishingPrinting denotes that the non-printing layout state is being |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1725 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1729 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1726 | 1730 |
1727 } // namespace blink | 1731 } // namespace blink |
1728 | 1732 |
1729 #ifndef NDEBUG | 1733 #ifndef NDEBUG |
1730 // Outside the WebCore namespace for ease of invocation from gdb. | 1734 // Outside the WebCore namespace for ease of invocation from gdb. |
1731 CORE_EXPORT void showLiveDocumentInstances(); | 1735 CORE_EXPORT void showLiveDocumentInstances(); |
1732 #endif | 1736 #endif |
1733 | 1737 |
1734 #endif // Document_h | 1738 #endif // Document_h |
OLD | NEW |