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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 | 1008 |
1009 enum HttpRefreshType { | 1009 enum HttpRefreshType { |
1010 HttpRefreshFromHeader, | 1010 HttpRefreshFromHeader, |
1011 HttpRefreshFromMetaTag | 1011 HttpRefreshFromMetaTag |
1012 }; | 1012 }; |
1013 void maybeHandleHttpRefresh(const String&, HttpRefreshType); | 1013 void maybeHandleHttpRefresh(const String&, HttpRefreshType); |
1014 | 1014 |
1015 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); | 1015 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); |
1016 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); | 1016 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); |
1017 | 1017 |
| 1018 void setHasViewportUnits() { m_hasViewportUnits = true; } |
| 1019 bool hasViewportUnits() const { return m_hasViewportUnits; } |
| 1020 void notifyResizeForViewportUnits(); |
| 1021 |
1018 protected: | 1022 protected: |
1019 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1023 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1020 | 1024 |
1021 virtual void didUpdateSecurityOrigin() OVERRIDE; | 1025 virtual void didUpdateSecurityOrigin() OVERRIDE; |
1022 | 1026 |
1023 void clearXMLVersion() { m_xmlVersion = String(); } | 1027 void clearXMLVersion() { m_xmlVersion = String(); } |
1024 | 1028 |
1025 virtual void dispose() OVERRIDE; | 1029 virtual void dispose() OVERRIDE; |
1026 | 1030 |
1027 virtual PassRefPtr<Document> cloneDocumentWithoutChildren(); | 1031 virtual PassRefPtr<Document> cloneDocumentWithoutChildren(); |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 OwnPtr<AnimationClock> m_animationClock; | 1307 OwnPtr<AnimationClock> m_animationClock; |
1304 RefPtr<DocumentTimeline> m_timeline; | 1308 RefPtr<DocumentTimeline> m_timeline; |
1305 RefPtr<DocumentTimeline> m_transitionTimeline; | 1309 RefPtr<DocumentTimeline> m_transitionTimeline; |
1306 CSSPendingAnimations m_cssPendingAnimations; | 1310 CSSPendingAnimations m_cssPendingAnimations; |
1307 | 1311 |
1308 RefPtr<Document> m_templateDocument; | 1312 RefPtr<Document> m_templateDocument; |
1309 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). | 1313 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). |
1310 | 1314 |
1311 Timer<Document> m_didAssociateFormControlsTimer; | 1315 Timer<Document> m_didAssociateFormControlsTimer; |
1312 HashSet<RefPtr<Element> > m_associatedFormControls; | 1316 HashSet<RefPtr<Element> > m_associatedFormControls; |
| 1317 |
| 1318 bool m_hasViewportUnits; |
1313 }; | 1319 }; |
1314 | 1320 |
1315 inline void Document::notifyRemovePendingSheetIfNeeded() | 1321 inline void Document::notifyRemovePendingSheetIfNeeded() |
1316 { | 1322 { |
1317 if (m_needsNotifyRemoveAllPendingStylesheet) | 1323 if (m_needsNotifyRemoveAllPendingStylesheet) |
1318 didRemoveAllPendingStylesheet(); | 1324 didRemoveAllPendingStylesheet(); |
1319 } | 1325 } |
1320 | 1326 |
1321 inline const Document* Document::templateDocument() const | 1327 inline const Document* Document::templateDocument() const |
1322 { | 1328 { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 inline bool Node::isDocumentNode() const | 1371 inline bool Node::isDocumentNode() const |
1366 { | 1372 { |
1367 return this == documentInternal(); | 1373 return this == documentInternal(); |
1368 } | 1374 } |
1369 | 1375 |
1370 Node* eventTargetNodeForDocument(Document*); | 1376 Node* eventTargetNodeForDocument(Document*); |
1371 | 1377 |
1372 } // namespace WebCore | 1378 } // namespace WebCore |
1373 | 1379 |
1374 #endif // Document_h | 1380 #endif // Document_h |
OLD | NEW |