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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1288 RootScrollerController& rootScrollerController() const { | 1288 RootScrollerController& rootScrollerController() const { |
1289 DCHECK(m_rootScrollerController); | 1289 DCHECK(m_rootScrollerController); |
1290 return *m_rootScrollerController; | 1290 return *m_rootScrollerController; |
1291 } | 1291 } |
1292 | 1292 |
1293 bool isInMainFrame() const; | 1293 bool isInMainFrame() const; |
1294 | 1294 |
1295 void maybeRecordLoadReason(WouldLoadReason); | 1295 void maybeRecordLoadReason(WouldLoadReason); |
1296 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } | 1296 WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; } |
1297 | 1297 |
1298 const PropertyRegistry* propertyRegistry() const; | |
1298 PropertyRegistry* propertyRegistry(); | 1299 PropertyRegistry* propertyRegistry(); |
1299 | 1300 |
1300 // Indicates whether the user has interacted with this particular Document. | 1301 // Indicates whether the user has interacted with this particular Document. |
1301 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } | 1302 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } |
1302 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } | 1303 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } |
1303 | 1304 |
1304 // Document maintains a counter of visible non-secure password | 1305 // Document maintains a counter of visible non-secure password |
1305 // fields in the page. Used to notify the embedder when all visible | 1306 // fields in the page. Used to notify the embedder when all visible |
1306 // non-secure passwords fields are no longer visible. | 1307 // non-secure passwords fields are no longer visible. |
1307 void incrementPasswordCount(); | 1308 void incrementPasswordCount(); |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1657 Member<ResizeObserverController> m_resizeObserverController; | 1658 Member<ResizeObserverController> m_resizeObserverController; |
1658 | 1659 |
1659 int m_nodeCount; | 1660 int m_nodeCount; |
1660 | 1661 |
1661 bool m_mayContainV0Shadow = false; | 1662 bool m_mayContainV0Shadow = false; |
1662 | 1663 |
1663 Member<SnapCoordinator> m_snapCoordinator; | 1664 Member<SnapCoordinator> m_snapCoordinator; |
1664 | 1665 |
1665 WouldLoadReason m_wouldLoadReason; | 1666 WouldLoadReason m_wouldLoadReason; |
1666 | 1667 |
1667 Member<PropertyRegistry> m_propertyRegistry; | 1668 mutable Member<PropertyRegistry> m_propertyRegistry; |
alancutter (OOO until 2018)
2017/01/04 01:03:42
Why is this mutable?
Timothy Loh
2017/01/04 02:00:59
Oops, I was going to copy the logic in non-const p
alancutter (OOO until 2018)
2017/01/04 02:22:10
I don't think mutable is required for your origina
| |
1668 | 1669 |
1669 unsigned m_passwordCount; | 1670 unsigned m_passwordCount; |
1670 | 1671 |
1671 TaskHandle m_sensitiveInputVisibilityTask; | 1672 TaskHandle m_sensitiveInputVisibilityTask; |
1672 | 1673 |
1673 mojom::EngagementLevel m_engagementLevel; | 1674 mojom::EngagementLevel m_engagementLevel; |
1674 }; | 1675 }; |
1675 | 1676 |
1676 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1677 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
1677 | 1678 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1718 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1719 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1719 | 1720 |
1720 } // namespace blink | 1721 } // namespace blink |
1721 | 1722 |
1722 #ifndef NDEBUG | 1723 #ifndef NDEBUG |
1723 // Outside the WebCore namespace for ease of invocation from gdb. | 1724 // Outside the WebCore namespace for ease of invocation from gdb. |
1724 CORE_EXPORT void showLiveDocumentInstances(); | 1725 CORE_EXPORT void showLiveDocumentInstances(); |
1725 #endif | 1726 #endif |
1726 | 1727 |
1727 #endif // Document_h | 1728 #endif // Document_h |
OLD | NEW |