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