diff options
author | Steve Block <steveblock@google.com> | 2009-12-15 10:12:09 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-12-17 17:41:10 +0000 |
commit | 643ca7872b450ea4efacab6188849e5aac2ba161 (patch) | |
tree | 6982576c228bcd1a7efe98afed544d840751094c /WebCore/dom/Document.h | |
parent | d026980fde6eb3b01c1fe49441174e89cd1be298 (diff) | |
download | external_webkit-643ca7872b450ea4efacab6188849e5aac2ba161.zip external_webkit-643ca7872b450ea4efacab6188849e5aac2ba161.tar.gz external_webkit-643ca7872b450ea4efacab6188849e5aac2ba161.tar.bz2 |
Merge webkit.org at r51976 : Initial merge by git.
Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43
Diffstat (limited to 'WebCore/dom/Document.h')
-rw-r--r-- | WebCore/dom/Document.h | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/WebCore/dom/Document.h b/WebCore/dom/Document.h index 9f5785e..3d0582c 100644 --- a/WebCore/dom/Document.h +++ b/WebCore/dom/Document.h @@ -33,7 +33,6 @@ #include "CollectionType.h" #include "Color.h" #include "DocumentMarker.h" -#include "Page.h" #include "ScriptExecutionContext.h" #include "Timer.h" #include <wtf/HashCountedSet.h> @@ -68,7 +67,6 @@ namespace WebCore { class EventListener; class Frame; class FrameView; - class HitTestRequest; class HTMLCanvasElement; class HTMLCollection; class HTMLAllCollection; @@ -78,6 +76,8 @@ namespace WebCore { class HTMLHeadElement; class HTMLInputElement; class HTMLMapElement; + class HistoryItem; + class HitTestRequest; class InspectorTimelineAgent; class IntPoint; class DOMWrapperWorld; @@ -85,6 +85,7 @@ namespace WebCore { class MouseEventWithHitTestResults; class NodeFilter; class NodeIterator; + class Page; class PlatformMouseEvent; class ProcessingInstruction; class Range; @@ -93,6 +94,7 @@ namespace WebCore { class RenderView; class ScriptElementData; class SecurityOrigin; + class SerializedScriptValue; class SegmentedString; class Settings; class StyleSheet; @@ -451,12 +453,12 @@ public: void updateLayout(); void updateLayoutIgnorePendingStylesheets(); static void updateStyleForAllDocuments(); // FIXME: Try to reduce the # of calls to this function. - DocLoader* docLoader() { return m_docLoader; } + DocLoader* docLoader() { return m_docLoader.get(); } virtual void attach(); virtual void detach(); - RenderArena* renderArena() { return m_renderArena; } + RenderArena* renderArena() { return m_renderArena.get(); } RenderView* renderView() const; @@ -504,7 +506,7 @@ public: CSSStyleSheet* mappedElementSheet(); virtual Tokenizer* createTokenizer(); - Tokenizer* tokenizer() { return m_tokenizer; } + Tokenizer* tokenizer() { return m_tokenizer.get(); } bool printing() const { return m_printing; } void setPrinting(bool p) { m_printing = p; } @@ -683,8 +685,8 @@ public: void setTitle(const String&, Element* titleElement = 0); void removeTitle(Element* titleElement); - String cookie() const; - void setCookie(const String&); + String cookie(ExceptionCode&) const; + void setCookie(const String&, ExceptionCode&); String referrer() const; @@ -738,7 +740,7 @@ public: void removeMarkers(DocumentMarker::MarkerType = DocumentMarker::AllMarkers); void removeMarkers(Node*); void repaintMarkers(DocumentMarker::MarkerType = DocumentMarker::AllMarkers); - void setRenderedRectForMarker(Node*, DocumentMarker, const IntRect&); + void setRenderedRectForMarker(Node*, const DocumentMarker&, const IntRect&); void invalidateRenderedRectsForMarkersInRect(const IntRect&); void shiftMarkers(Node*, unsigned startOffset, int delta, DocumentMarker::MarkerType = DocumentMarker::AllMarkers); void setMarkersActive(Range*, bool); @@ -772,7 +774,7 @@ public: #if ENABLE(XBL) // XBL methods - XBLBindingManager* bindingManager() const { return m_bindingManager; } + XBLBindingManager* bindingManager() const { return m_bindingManager.get(); } #endif void incDOMTreeVersion() { ++m_domtree_version; } @@ -832,7 +834,7 @@ public: virtual void addMessage(MessageDestination, MessageSource, MessageType, MessageLevel, const String& message, unsigned lineNumber, const String& sourceURL); virtual void resourceRetrievedByXMLHttpRequest(unsigned long identifier, const ScriptString& sourceString); virtual void scriptImported(unsigned long, const String&); - virtual void postTask(PassRefPtr<Task>); // Executes the task on context's thread asynchronously. + virtual void postTask(PassOwnPtr<Task>); // Executes the task on context's thread asynchronously. typedef HashMap<WebCore::Node*, JSNode*> JSWrapperCache; typedef HashMap<DOMWrapperWorld*, JSWrapperCache*> JSWrapperCacheMap; @@ -900,6 +902,13 @@ public: // that already contains content. void setSecurityOrigin(SecurityOrigin*); + void updateURLForPushOrReplaceState(const KURL&); + void statePopped(SerializedScriptValue*); + void registerHistoryItem(HistoryItem* item); + void unregisterHistoryItem(HistoryItem* item); + + void updateSandboxFlags(); // Set sandbox flags as determined by the frame. + bool processingLoadEvent() const { return m_processingLoadEvent; } #if ENABLE(DATABASE) @@ -976,8 +985,8 @@ private: bool m_didCalculateStyleSelector; Frame* m_frame; - DocLoader* m_docLoader; - Tokenizer* m_tokenizer; + OwnPtr<DocLoader> m_docLoader; + OwnPtr<Tokenizer> m_tokenizer; bool m_wellFormed; // Document URLs. @@ -1076,8 +1085,8 @@ private: String m_title; bool m_titleSetExplicitly; RefPtr<Element> m_titleElement; - - RenderArena* m_renderArena; + + OwnPtr<RenderArena> m_renderArena; typedef std::pair<Vector<DocumentMarker>, Vector<IntRect> > MarkerMapVectorPair; typedef HashMap<RefPtr<Node>, MarkerMapVectorPair*> MarkerMap; @@ -1090,6 +1099,8 @@ private: Element* m_cssTarget; bool m_processingLoadEvent; + RefPtr<SerializedScriptValue> m_pendingStateObject; + HashSet<RefPtr<HistoryItem> > m_associatedHistoryItems; double m_startTime; bool m_overMinimumLayoutThreshold; @@ -1102,7 +1113,7 @@ private: #endif #if ENABLE(XBL) - XBLBindingManager* m_bindingManager; // The access point through which documents and elements communicate with XBL. + OwnPtr<XBLBindingManager> m_bindingManager; // The access point through which documents and elements communicate with XBL. #endif typedef HashMap<AtomicStringImpl*, HTMLMapElement*> ImageMapsByName; @@ -1204,12 +1215,6 @@ inline bool Node::isDocumentNode() const return this == m_document; } -#if ENABLE(INSPECTOR) -inline InspectorTimelineAgent* Document::inspectorTimelineAgent() const { - return page() ? page()->inspectorTimelineAgent() : 0; -} -#endif - } // namespace WebCore #endif // Document_h |