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 r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 void setShadowCascadeOrder(ShadowCascadeOrder); | 1087 void setShadowCascadeOrder(ShadowCascadeOrder); |
1088 | 1088 |
1089 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas
cadeOrder::ShadowCascadeV1; } | 1089 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas
cadeOrder::ShadowCascadeV1; } |
1090 | 1090 |
1091 Element* rootScroller() const; | 1091 Element* rootScroller() const; |
1092 void setRootScroller(Element*, ExceptionState&); | 1092 void setRootScroller(Element*, ExceptionState&); |
1093 RootScrollerController* rootScrollerController() const { return m_rootScroll
erController.get(); } | 1093 RootScrollerController* rootScrollerController() const { return m_rootScroll
erController.get(); } |
1094 | 1094 |
1095 bool isInMainFrame() const; | 1095 bool isInMainFrame() const; |
1096 | 1096 |
| 1097 void onVisibilityMaybeChanged(bool visible); |
| 1098 |
1097 protected: | 1099 protected: |
1098 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1100 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1099 | 1101 |
1100 void didUpdateSecurityOrigin() final; | 1102 void didUpdateSecurityOrigin() final; |
1101 | 1103 |
1102 void clearXMLVersion() { m_xmlVersion = String(); } | 1104 void clearXMLVersion() { m_xmlVersion = String(); } |
1103 | 1105 |
1104 virtual Document* cloneDocumentWithoutChildren(); | 1106 virtual Document* cloneDocumentWithoutChildren(); |
1105 | 1107 |
1106 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN
ode* newContainerNode, ExceptionState&); | 1108 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN
ode* newContainerNode, ExceptionState&); |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1409 | 1411 |
1410 Member<IntersectionObserverController> m_intersectionObserverController; | 1412 Member<IntersectionObserverController> m_intersectionObserverController; |
1411 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 1413 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
1412 Member<ResizeObserverController> m_resizeObserverController; | 1414 Member<ResizeObserverController> m_resizeObserverController; |
1413 | 1415 |
1414 int m_nodeCount; | 1416 int m_nodeCount; |
1415 | 1417 |
1416 bool m_mayContainV0Shadow = false; | 1418 bool m_mayContainV0Shadow = false; |
1417 | 1419 |
1418 Member<SnapCoordinator> m_snapCoordinator; | 1420 Member<SnapCoordinator> m_snapCoordinator; |
| 1421 |
| 1422 bool m_visibilityWasLogged; |
1419 }; | 1423 }; |
1420 | 1424 |
1421 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1425 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
1422 | 1426 |
1423 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) const | 1427 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) const |
1424 { | 1428 { |
1425 // The different (legacy) meta tags have different priorities based on the t
ype | 1429 // The different (legacy) meta tags have different priorities based on the t
ype |
1426 // regardless of which order they appear in the DOM. The priority is given b
y the | 1430 // regardless of which order they appear in the DOM. The priority is given b
y the |
1427 // ViewportDescription::Type enum. | 1431 // ViewportDescription::Type enum. |
1428 return origin >= m_legacyViewportDescription.type; | 1432 return origin >= m_legacyViewportDescription.type; |
(...skipping 29 matching lines...) Expand all Loading... |
1458 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1462 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1459 | 1463 |
1460 } // namespace blink | 1464 } // namespace blink |
1461 | 1465 |
1462 #ifndef NDEBUG | 1466 #ifndef NDEBUG |
1463 // Outside the WebCore namespace for ease of invocation from gdb. | 1467 // Outside the WebCore namespace for ease of invocation from gdb. |
1464 CORE_EXPORT void showLiveDocumentInstances(); | 1468 CORE_EXPORT void showLiveDocumentInstances(); |
1465 #endif | 1469 #endif |
1466 | 1470 |
1467 #endif // Document_h | 1471 #endif // Document_h |
OLD | NEW |