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