Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: Source/WebCore/dom/Document.h

Issue 12670015: Revert 146672 "Add client callbacks to notify of changes of asso..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "QualifiedName.h" 45 #include "QualifiedName.h"
46 #include "ReferrerPolicy.h" 46 #include "ReferrerPolicy.h"
47 #include "ScriptExecutionContext.h" 47 #include "ScriptExecutionContext.h"
48 #include "StringWithDirection.h" 48 #include "StringWithDirection.h"
49 #include "Timer.h" 49 #include "Timer.h"
50 #include "TreeScope.h" 50 #include "TreeScope.h"
51 #include "UserActionElementSet.h" 51 #include "UserActionElementSet.h"
52 #include "ViewportArguments.h" 52 #include "ViewportArguments.h"
53 #include <wtf/Deque.h> 53 #include <wtf/Deque.h>
54 #include <wtf/FixedArray.h> 54 #include <wtf/FixedArray.h>
55 #include <wtf/HashSet.h>
56 #include <wtf/OwnPtr.h> 55 #include <wtf/OwnPtr.h>
57 #include <wtf/PassOwnPtr.h> 56 #include <wtf/PassOwnPtr.h>
58 #include <wtf/PassRefPtr.h> 57 #include <wtf/PassRefPtr.h>
59 #include <wtf/WeakPtr.h> 58 #include <wtf/WeakPtr.h>
60 59
61 namespace WebCore { 60 namespace WebCore {
62 61
63 class AXObjectCache; 62 class AXObjectCache;
64 class Attr; 63 class Attr;
65 class CDATASection; 64 class CDATASection;
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 Element* activeModalDialog() const { return !m_topLayerElements.isEmpty() ? m_topLayerElements.last().get() : 0; } 1202 Element* activeModalDialog() const { return !m_topLayerElements.isEmpty() ? m_topLayerElements.last().get() : 0; }
1204 #endif 1203 #endif
1205 1204
1206 #if ENABLE(TEMPLATE_ELEMENT) 1205 #if ENABLE(TEMPLATE_ELEMENT)
1207 const Document* templateDocument() const; 1206 const Document* templateDocument() const;
1208 Document* ensureTemplateDocument(); 1207 Document* ensureTemplateDocument();
1209 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; } 1208 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; }
1210 Document* templateDocumentHost() { return m_templateDocumentHost; } 1209 Document* templateDocumentHost() { return m_templateDocumentHost; }
1211 #endif 1210 #endif
1212 1211
1213 void didAssociateFormControl(Element*);
1214
1215 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me ssage, unsigned long requestIdentifier = 0); 1212 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me ssage, unsigned long requestIdentifier = 0);
1216 1213
1217 virtual const SecurityOrigin* topOrigin() const OVERRIDE; 1214 virtual const SecurityOrigin* topOrigin() const OVERRIDE;
1218 1215
1219 #if ENABLE(FONT_LOAD_EVENTS) 1216 #if ENABLE(FONT_LOAD_EVENTS)
1220 PassRefPtr<FontLoader> fontloader(); 1217 PassRefPtr<FontLoader> fontloader();
1221 #endif 1218 #endif
1222 1219
1223 protected: 1220 protected:
1224 Document(Frame*, const KURL&, bool isXHTML, bool isHTML); 1221 Document(Frame*, const KURL&, bool isXHTML, bool isHTML);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 void addDocumentToFullScreenChangeEventQueue(Document*); 1290 void addDocumentToFullScreenChangeEventQueue(Document*);
1294 #endif 1291 #endif
1295 1292
1296 void setVisualUpdatesAllowed(ReadyState); 1293 void setVisualUpdatesAllowed(ReadyState);
1297 void setVisualUpdatesAllowed(bool); 1294 void setVisualUpdatesAllowed(bool);
1298 void visualUpdatesSuppressionTimerFired(Timer<Document>*); 1295 void visualUpdatesSuppressionTimerFired(Timer<Document>*);
1299 1296
1300 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; } 1297 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; }
1301 void addMutationEventListenerTypeIfEnabled(ListenerType); 1298 void addMutationEventListenerTypeIfEnabled(ListenerType);
1302 1299
1303 void didAssociateFormControlsTimerFired(Timer<Document>*);
1304
1305 void styleResolverThrowawayTimerFired(Timer<Document>*); 1300 void styleResolverThrowawayTimerFired(Timer<Document>*);
1306 Timer<Document> m_styleResolverThrowawayTimer; 1301 Timer<Document> m_styleResolverThrowawayTimer;
1307 double m_lastStyleResolverAccessTime; 1302 double m_lastStyleResolverAccessTime;
1308 1303
1309 OwnPtr<StyleResolver> m_styleResolver; 1304 OwnPtr<StyleResolver> m_styleResolver;
1310 bool m_didCalculateStyleResolver; 1305 bool m_didCalculateStyleResolver;
1311 bool m_hasDirtyStyleResolver; 1306 bool m_hasDirtyStyleResolver;
1312 bool m_hasNodesWithPlaceholderStyle; 1307 bool m_hasNodesWithPlaceholderStyle;
1313 bool m_needsNotifyRemoveAllPendingStylesheet; 1308 bool m_needsNotifyRemoveAllPendingStylesheet;
1314 // But sometimes you need to ignore pending stylesheet count to 1309 // But sometimes you need to ignore pending stylesheet count to
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 LocaleIdentifierToLocaleMap m_localeCache; 1585 LocaleIdentifierToLocaleMap m_localeCache;
1591 1586
1592 #if ENABLE(TEMPLATE_ELEMENT) 1587 #if ENABLE(TEMPLATE_ELEMENT)
1593 RefPtr<Document> m_templateDocument; 1588 RefPtr<Document> m_templateDocument;
1594 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument). 1589 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f rom m_templateDocument).
1595 #endif 1590 #endif
1596 1591
1597 #if ENABLE(FONT_LOAD_EVENTS) 1592 #if ENABLE(FONT_LOAD_EVENTS)
1598 RefPtr<FontLoader> m_fontloader; 1593 RefPtr<FontLoader> m_fontloader;
1599 #endif 1594 #endif
1600
1601 Timer<Document> m_didAssociateFormControlsTimer;
1602 HashSet<Element*> m_associatedFormControls;
1603
1604 }; 1595 };
1605 1596
1606 inline void Document::notifyRemovePendingSheetIfNeeded() 1597 inline void Document::notifyRemovePendingSheetIfNeeded()
1607 { 1598 {
1608 if (m_needsNotifyRemoveAllPendingStylesheet) 1599 if (m_needsNotifyRemoveAllPendingStylesheet)
1609 didRemoveAllPendingStylesheet(); 1600 didRemoveAllPendingStylesheet();
1610 } 1601 }
1611 1602
1612 #if ENABLE(TEMPLATE_ELEMENT) 1603 #if ENABLE(TEMPLATE_ELEMENT)
1613 inline const Document* Document::templateDocument() const 1604 inline const Document* Document::templateDocument() const
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 trackForDebugging(); 1660 trackForDebugging();
1670 #endif 1661 #endif
1671 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); 1662 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter);
1672 } 1663 }
1673 1664
1674 Node* eventTargetNodeForDocument(Document*); 1665 Node* eventTargetNodeForDocument(Document*);
1675 1666
1676 } // namespace WebCore 1667 } // namespace WebCore
1677 1668
1678 #endif // Document_h 1669 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698