| 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 11 matching lines...) Expand all Loading... |
| 22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef Document_h | 28 #ifndef Document_h |
| 29 #define Document_h | 29 #define Document_h |
| 30 | 30 |
| 31 #include "bindings/v8/ScriptValue.h" | 31 #include "bindings/v8/ScriptValue.h" |
| 32 #include "core/animation/css/CSSPendingAnimations.h" |
| 32 #include "core/dom/ContainerNode.h" | 33 #include "core/dom/ContainerNode.h" |
| 33 #include "core/dom/DOMTimeStamp.h" | 34 #include "core/dom/DOMTimeStamp.h" |
| 34 #include "core/dom/DocumentInit.h" | 35 #include "core/dom/DocumentInit.h" |
| 35 #include "core/dom/DocumentLifecycle.h" | 36 #include "core/dom/DocumentLifecycle.h" |
| 36 #include "core/dom/DocumentSupplementable.h" | 37 #include "core/dom/DocumentSupplementable.h" |
| 37 #include "core/dom/DocumentTiming.h" | 38 #include "core/dom/DocumentTiming.h" |
| 38 #include "core/dom/ExecutionContext.h" | 39 #include "core/dom/ExecutionContext.h" |
| 39 #include "core/dom/IconURL.h" | 40 #include "core/dom/IconURL.h" |
| 40 #include "core/dom/MutationObserver.h" | 41 #include "core/dom/MutationObserver.h" |
| 41 #include "core/dom/QualifiedName.h" | 42 #include "core/dom/QualifiedName.h" |
| (...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 void notifySeamlessChildDocumentsOfStylesheetUpdate() const; | 983 void notifySeamlessChildDocumentsOfStylesheetUpdate() const; |
| 983 | 984 |
| 984 bool inStyleRecalc() { return m_inStyleRecalc; } | 985 bool inStyleRecalc() { return m_inStyleRecalc; } |
| 985 | 986 |
| 986 // Return a Locale for the default locale if the argument is null or empty. | 987 // Return a Locale for the default locale if the argument is null or empty. |
| 987 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 988 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
| 988 | 989 |
| 989 AnimationClock& animationClock() { return *m_animationClock; } | 990 AnimationClock& animationClock() { return *m_animationClock; } |
| 990 DocumentTimeline* timeline() const { return m_timeline.get(); } | 991 DocumentTimeline* timeline() const { return m_timeline.get(); } |
| 991 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g
et(); } | 992 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g
et(); } |
| 993 CSSPendingAnimations& cssPendingAnimations() { return m_cssPendingAnimations
; } |
| 992 | 994 |
| 993 void addToTopLayer(Element*, const Element* before = 0); | 995 void addToTopLayer(Element*, const Element* before = 0); |
| 994 void removeFromTopLayer(Element*); | 996 void removeFromTopLayer(Element*); |
| 995 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } | 997 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } |
| 996 HTMLDialogElement* activeModalDialog() const; | 998 HTMLDialogElement* activeModalDialog() const; |
| 997 | 999 |
| 998 const Document* templateDocument() const; | 1000 const Document* templateDocument() const; |
| 999 Document& ensureTemplateDocument(); | 1001 Document& ensureTemplateDocument(); |
| 1000 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc
umentHost = templateDocumentHost; } | 1002 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc
umentHost = templateDocumentHost; } |
| 1001 Document* templateDocumentHost() { return m_templateDocumentHost; } | 1003 Document* templateDocumentHost() { return m_templateDocumentHost; } |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 #ifndef NDEBUG | 1317 #ifndef NDEBUG |
| 1316 bool m_didDispatchViewportPropertiesChanged; | 1318 bool m_didDispatchViewportPropertiesChanged; |
| 1317 #endif | 1319 #endif |
| 1318 | 1320 |
| 1319 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; | 1321 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; |
| 1320 LocaleIdentifierToLocaleMap m_localeCache; | 1322 LocaleIdentifierToLocaleMap m_localeCache; |
| 1321 | 1323 |
| 1322 OwnPtr<AnimationClock> m_animationClock; | 1324 OwnPtr<AnimationClock> m_animationClock; |
| 1323 RefPtr<DocumentTimeline> m_timeline; | 1325 RefPtr<DocumentTimeline> m_timeline; |
| 1324 RefPtr<DocumentTimeline> m_transitionTimeline; | 1326 RefPtr<DocumentTimeline> m_transitionTimeline; |
| 1327 CSSPendingAnimations m_cssPendingAnimations; |
| 1325 | 1328 |
| 1326 RefPtr<Document> m_templateDocument; | 1329 RefPtr<Document> m_templateDocument; |
| 1327 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). | 1330 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). |
| 1328 | 1331 |
| 1329 Timer<Document> m_didAssociateFormControlsTimer; | 1332 Timer<Document> m_didAssociateFormControlsTimer; |
| 1330 HashSet<RefPtr<Element> > m_associatedFormControls; | 1333 HashSet<RefPtr<Element> > m_associatedFormControls; |
| 1331 }; | 1334 }; |
| 1332 | 1335 |
| 1333 inline void Document::notifyRemovePendingSheetIfNeeded() | 1336 inline void Document::notifyRemovePendingSheetIfNeeded() |
| 1334 { | 1337 { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 inline bool Node::isDocumentNode() const | 1383 inline bool Node::isDocumentNode() const |
| 1381 { | 1384 { |
| 1382 return this == documentInternal(); | 1385 return this == documentInternal(); |
| 1383 } | 1386 } |
| 1384 | 1387 |
| 1385 Node* eventTargetNodeForDocument(Document*); | 1388 Node* eventTargetNodeForDocument(Document*); |
| 1386 | 1389 |
| 1387 } // namespace WebCore | 1390 } // namespace WebCore |
| 1388 | 1391 |
| 1389 #endif // Document_h | 1392 #endif // Document_h |
| OLD | NEW |