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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 372 |
373 void setXMLEncoding(const String& encoding) { | 373 void setXMLEncoding(const String& encoding) { |
374 m_xmlEncoding = encoding; | 374 m_xmlEncoding = encoding; |
375 } // read-only property, only to be set from XMLDocumentParser | 375 } // read-only property, only to be set from XMLDocumentParser |
376 void setXMLVersion(const String&, ExceptionState&); | 376 void setXMLVersion(const String&, ExceptionState&); |
377 void setXMLStandalone(bool, ExceptionState&); | 377 void setXMLStandalone(bool, ExceptionState&); |
378 void setHasXMLDeclaration(bool hasXMLDeclaration) { | 378 void setHasXMLDeclaration(bool hasXMLDeclaration) { |
379 m_hasXMLDeclaration = hasXMLDeclaration ? 1 : 0; | 379 m_hasXMLDeclaration = hasXMLDeclaration ? 1 : 0; |
380 } | 380 } |
381 | 381 |
382 String origin() const { return getSecurityOrigin()->toString(); } | 382 String origin() const; |
383 String suborigin() const { | 383 String suborigin() const; |
384 return getSecurityOrigin()->hasSuborigin() | |
385 ? getSecurityOrigin()->suborigin()->name() | |
386 : String(); | |
387 } | |
388 | 384 |
389 String visibilityState() const; | 385 String visibilityState() const; |
390 PageVisibilityState pageVisibilityState() const; | 386 PageVisibilityState pageVisibilityState() const; |
391 bool hidden() const; | 387 bool hidden() const; |
392 void didChangeVisibilityState(); | 388 void didChangeVisibilityState(); |
393 | 389 |
394 // If the document is "prefetch only", it will not be fully contstructed, | 390 // If the document is "prefetch only", it will not be fully contstructed, |
395 // and should never be displayed. Only a few resources will be loaded and | 391 // and should never be displayed. Only a few resources will be loaded and |
396 // scanned, in order to warm up caches. | 392 // scanned, in order to warm up caches. |
397 bool isPrefetchOnly() const; | 393 bool isPrefetchOnly() const; |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1713 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1718 | 1714 |
1719 } // namespace blink | 1715 } // namespace blink |
1720 | 1716 |
1721 #ifndef NDEBUG | 1717 #ifndef NDEBUG |
1722 // Outside the WebCore namespace for ease of invocation from gdb. | 1718 // Outside the WebCore namespace for ease of invocation from gdb. |
1723 CORE_EXPORT void showLiveDocumentInstances(); | 1719 CORE_EXPORT void showLiveDocumentInstances(); |
1724 #endif | 1720 #endif |
1725 | 1721 |
1726 #endif // Document_h | 1722 #endif // Document_h |
OLD | NEW |