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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1293 | 1293 |
1294 const PropertyRegistry* propertyRegistry() const; | 1294 const PropertyRegistry* propertyRegistry() const; |
1295 PropertyRegistry* propertyRegistry(); | 1295 PropertyRegistry* propertyRegistry(); |
1296 | 1296 |
1297 // Document maintains a counter of visible non-secure password | 1297 // Document maintains a counter of visible non-secure password |
1298 // fields in the page. Used to notify the embedder when all visible | 1298 // fields in the page. Used to notify the embedder when all visible |
1299 // non-secure passwords fields are no longer visible. | 1299 // non-secure passwords fields are no longer visible. |
1300 void incrementPasswordCount(); | 1300 void incrementPasswordCount(); |
1301 void decrementPasswordCount(); | 1301 void decrementPasswordCount(); |
1302 | 1302 |
1303 // Set the default Document URLs to about:blank. | |
1304 KURL urlForBinding() { | |
tkent
2017/03/20 23:06:54
Let's declare urlForBinding() around url(), and ad
| |
1305 if (!url().isNull()) { | |
1306 return url(); | |
1307 } | |
1308 return blankURL(); | |
1309 } | |
1310 | |
1303 protected: | 1311 protected: |
1304 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1312 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1305 | 1313 |
1306 void didUpdateSecurityOrigin() final; | 1314 void didUpdateSecurityOrigin() final; |
1307 | 1315 |
1308 void clearXMLVersion() { m_xmlVersion = String(); } | 1316 void clearXMLVersion() { m_xmlVersion = String(); } |
1309 | 1317 |
1310 virtual Document* cloneDocumentWithoutChildren(); | 1318 virtual Document* cloneDocumentWithoutChildren(); |
1311 | 1319 |
1312 bool importContainerNodeChildren(ContainerNode* oldContainerNode, | 1320 bool importContainerNodeChildren(ContainerNode* oldContainerNode, |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1711 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1719 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1712 | 1720 |
1713 } // namespace blink | 1721 } // namespace blink |
1714 | 1722 |
1715 #ifndef NDEBUG | 1723 #ifndef NDEBUG |
1716 // Outside the WebCore namespace for ease of invocation from gdb. | 1724 // Outside the WebCore namespace for ease of invocation from gdb. |
1717 CORE_EXPORT void showLiveDocumentInstances(); | 1725 CORE_EXPORT void showLiveDocumentInstances(); |
1718 #endif | 1726 #endif |
1719 | 1727 |
1720 #endif // Document_h | 1728 #endif // Document_h |
OLD | NEW |