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