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 274 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 inline bool Node::isDocumentNode() const | 1360 inline bool Node::isDocumentNode() const |
1355 { | 1361 { |
1356 return this == documentInternal(); | 1362 return this == documentInternal(); |
1357 } | 1363 } |
1358 | 1364 |
1359 Node* eventTargetNodeForDocument(Document*); | 1365 Node* eventTargetNodeForDocument(Document*); |
1360 | 1366 |
1361 } // namespace WebCore | 1367 } // namespace WebCore |
1362 | 1368 |
1363 #endif // Document_h | 1369 #endif // Document_h |
OLD | NEW |