| 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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 Element* rootScroller() const; | 1088 Element* rootScroller() const; |
| 1089 void setRootScroller(Element*, ExceptionState&); | 1089 void setRootScroller(Element*, ExceptionState&); |
| 1090 RootScrollerController* rootScrollerController() const { return m_rootScroll
erController.get(); } | 1090 RootScrollerController* rootScrollerController() const { return m_rootScroll
erController.get(); } |
| 1091 | 1091 |
| 1092 // TODO(bokan): Temporarily added to allow ScrollCustomization to properly | 1092 // TODO(bokan): Temporarily added to allow ScrollCustomization to properly |
| 1093 // opt out for wheel scrolls. crbug.com/623079. | 1093 // opt out for wheel scrolls. crbug.com/623079. |
| 1094 bool isViewportScrollCallback(const ScrollStateCallback*); | 1094 bool isViewportScrollCallback(const ScrollStateCallback*); |
| 1095 | 1095 |
| 1096 bool isInMainFrame() const; | 1096 bool isInMainFrame() const; |
| 1097 | 1097 |
| 1098 void onVisibilityMaybeChanged(bool visible); |
| 1099 |
| 1098 protected: | 1100 protected: |
| 1099 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1101 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1100 | 1102 |
| 1101 void didUpdateSecurityOrigin() final; | 1103 void didUpdateSecurityOrigin() final; |
| 1102 | 1104 |
| 1103 void clearXMLVersion() { m_xmlVersion = String(); } | 1105 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1104 | 1106 |
| 1105 virtual Document* cloneDocumentWithoutChildren(); | 1107 virtual Document* cloneDocumentWithoutChildren(); |
| 1106 | 1108 |
| 1107 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN
ode* newContainerNode, ExceptionState&); | 1109 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN
ode* newContainerNode, ExceptionState&); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 | 1412 |
| 1411 Member<IntersectionObserverController> m_intersectionObserverController; | 1413 Member<IntersectionObserverController> m_intersectionObserverController; |
| 1412 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 1414 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
| 1413 Member<ResizeObserverController> m_resizeObserverController; | 1415 Member<ResizeObserverController> m_resizeObserverController; |
| 1414 | 1416 |
| 1415 int m_nodeCount; | 1417 int m_nodeCount; |
| 1416 | 1418 |
| 1417 bool m_mayContainV0Shadow = false; | 1419 bool m_mayContainV0Shadow = false; |
| 1418 | 1420 |
| 1419 Member<SnapCoordinator> m_snapCoordinator; | 1421 Member<SnapCoordinator> m_snapCoordinator; |
| 1422 |
| 1423 bool m_visibilityWasLogged; |
| 1420 }; | 1424 }; |
| 1421 | 1425 |
| 1422 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1426 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
| 1423 | 1427 |
| 1424 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) const | 1428 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) const |
| 1425 { | 1429 { |
| 1426 // The different (legacy) meta tags have different priorities based on the t
ype | 1430 // The different (legacy) meta tags have different priorities based on the t
ype |
| 1427 // regardless of which order they appear in the DOM. The priority is given b
y the | 1431 // regardless of which order they appear in the DOM. The priority is given b
y the |
| 1428 // ViewportDescription::Type enum. | 1432 // ViewportDescription::Type enum. |
| 1429 return origin >= m_legacyViewportDescription.type; | 1433 return origin >= m_legacyViewportDescription.type; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1463 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1460 | 1464 |
| 1461 } // namespace blink | 1465 } // namespace blink |
| 1462 | 1466 |
| 1463 #ifndef NDEBUG | 1467 #ifndef NDEBUG |
| 1464 // Outside the WebCore namespace for ease of invocation from gdb. | 1468 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1465 CORE_EXPORT void showLiveDocumentInstances(); | 1469 CORE_EXPORT void showLiveDocumentInstances(); |
| 1466 #endif | 1470 #endif |
| 1467 | 1471 |
| 1468 #endif // Document_h | 1472 #endif // Document_h |
| OLD | NEW |