Chromium Code Reviews| 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() { return m_hasViewportUnits; } | |
|
esprehn
2013/12/04 06:02:28
const
Timothy Loh
2013/12/04 07:17:39
Done.
| |
| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1302 OwnPtr<AnimationClock> m_animationClock; | 1306 OwnPtr<AnimationClock> m_animationClock; |
| 1303 RefPtr<DocumentTimeline> m_timeline; | 1307 RefPtr<DocumentTimeline> m_timeline; |
| 1304 RefPtr<DocumentTimeline> m_transitionTimeline; | 1308 RefPtr<DocumentTimeline> m_transitionTimeline; |
| 1305 CSSPendingAnimations m_cssPendingAnimations; | 1309 CSSPendingAnimations m_cssPendingAnimations; |
| 1306 | 1310 |
| 1307 RefPtr<Document> m_templateDocument; | 1311 RefPtr<Document> m_templateDocument; |
| 1308 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). | 1312 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). |
| 1309 | 1313 |
| 1310 Timer<Document> m_didAssociateFormControlsTimer; | 1314 Timer<Document> m_didAssociateFormControlsTimer; |
| 1311 HashSet<RefPtr<Element> > m_associatedFormControls; | 1315 HashSet<RefPtr<Element> > m_associatedFormControls; |
| 1316 | |
| 1317 bool m_hasViewportUnits; | |
|
esprehn
2013/12/04 06:02:28
You don't set this in the constructor, you need m_
Timothy Loh
2013/12/04 07:17:39
Done.
| |
| 1312 }; | 1318 }; |
| 1313 | 1319 |
| 1314 inline void Document::notifyRemovePendingSheetIfNeeded() | 1320 inline void Document::notifyRemovePendingSheetIfNeeded() |
| 1315 { | 1321 { |
| 1316 if (m_needsNotifyRemoveAllPendingStylesheet) | 1322 if (m_needsNotifyRemoveAllPendingStylesheet) |
| 1317 didRemoveAllPendingStylesheet(); | 1323 didRemoveAllPendingStylesheet(); |
| 1318 } | 1324 } |
| 1319 | 1325 |
| 1320 inline const Document* Document::templateDocument() const | 1326 inline const Document* Document::templateDocument() const |
| 1321 { | 1327 { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1361 inline bool Node::isDocumentNode() const | 1367 inline bool Node::isDocumentNode() const |
| 1362 { | 1368 { |
| 1363 return this == documentInternal(); | 1369 return this == documentInternal(); |
| 1364 } | 1370 } |
| 1365 | 1371 |
| 1366 Node* eventTargetNodeForDocument(Document*); | 1372 Node* eventTargetNodeForDocument(Document*); |
| 1367 | 1373 |
| 1368 } // namespace WebCore | 1374 } // namespace WebCore |
| 1369 | 1375 |
| 1370 #endif // Document_h | 1376 #endif // Document_h |
| OLD | NEW |