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

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

Issue 6537003: Merge 78648 - 2011-02-15 James Robinson <jamesr@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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 | « Source/WebCore/bindings/js/ScriptDebugServer.cpp ('k') | 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 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 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 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 struct DashboardRegionValue; 141 struct DashboardRegionValue;
142 #endif 142 #endif
143 143
144 #if ENABLE(TOUCH_EVENTS) 144 #if ENABLE(TOUCH_EVENTS)
145 class Touch; 145 class Touch;
146 class TouchList; 146 class TouchList;
147 #endif 147 #endif
148 148
149 #if ENABLE(REQUEST_ANIMATION_FRAME) 149 #if ENABLE(REQUEST_ANIMATION_FRAME)
150 class RequestAnimationFrameCallback; 150 class RequestAnimationFrameCallback;
151 class ScriptedAnimationController;
151 #endif 152 #endif
152 153
153 typedef int ExceptionCode; 154 typedef int ExceptionCode;
154 155
155 class FormElementKey { 156 class FormElementKey {
156 public: 157 public:
157 FormElementKey(AtomicStringImpl* = 0, AtomicStringImpl* = 0); 158 FormElementKey(AtomicStringImpl* = 0, AtomicStringImpl* = 0);
158 ~FormElementKey(); 159 ~FormElementKey();
159 FormElementKey(const FormElementKey&); 160 FormElementKey(const FormElementKey&);
160 FormElementKey& operator=(const FormElementKey&); 161 FormElementKey& operator=(const FormElementKey&);
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 // Extension for manipulating canvas drawing contexts for use in CSS 932 // Extension for manipulating canvas drawing contexts for use in CSS
932 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String & name, int width, int height); 933 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String & name, int width, int height);
933 HTMLCanvasElement* getCSSCanvasElement(const String& name); 934 HTMLCanvasElement* getCSSCanvasElement(const String& name);
934 935
935 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } 936 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
936 void parseDNSPrefetchControlHeader(const String&); 937 void parseDNSPrefetchControlHeader(const String&);
937 938
938 virtual void addMessage(MessageSource, MessageType, MessageLevel, const Stri ng& message, unsigned lineNumber, const String& sourceURL, PassRefPtr<ScriptCall Stack>); 939 virtual void addMessage(MessageSource, MessageType, MessageLevel, const Stri ng& message, unsigned lineNumber, const String& sourceURL, PassRefPtr<ScriptCall Stack>);
939 virtual void postTask(PassOwnPtr<Task>); // Executes the task on context's t hread asynchronously. 940 virtual void postTask(PassOwnPtr<Task>); // Executes the task on context's t hread asynchronously.
940 941
942 virtual void suspendScriptedAnimationControllerCallbacks();
943 virtual void resumeScriptedAnimationControllerCallbacks();
944
941 #if USE(JSC) 945 #if USE(JSC)
942 typedef JSC::WeakGCMap<WebCore::Node*, JSNode*> JSWrapperCache; 946 typedef JSC::WeakGCMap<WebCore::Node*, JSNode*> JSWrapperCache;
943 typedef HashMap<DOMWrapperWorld*, JSWrapperCache*> JSWrapperCacheMap; 947 typedef HashMap<DOMWrapperWorld*, JSWrapperCache*> JSWrapperCacheMap;
944 JSWrapperCacheMap& wrapperCacheMap() { return m_wrapperCacheMap; } 948 JSWrapperCacheMap& wrapperCacheMap() { return m_wrapperCacheMap; }
945 JSWrapperCache* getWrapperCache(DOMWrapperWorld* world); 949 JSWrapperCache* getWrapperCache(DOMWrapperWorld* world);
946 JSWrapperCache* createWrapperCache(DOMWrapperWorld*); 950 JSWrapperCache* createWrapperCache(DOMWrapperWorld*);
947 void destroyWrapperCache(DOMWrapperWorld*); 951 void destroyWrapperCache(DOMWrapperWorld*);
948 void destroyAllWrapperCaches(); 952 void destroyAllWrapperCaches();
949 #endif 953 #endif
950 954
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 1402
1399 ViewportArguments m_viewportArguments; 1403 ViewportArguments m_viewportArguments;
1400 1404
1401 bool m_directionSetOnDocumentElement; 1405 bool m_directionSetOnDocumentElement;
1402 bool m_writingModeSetOnDocumentElement; 1406 bool m_writingModeSetOnDocumentElement;
1403 1407
1404 DocumentTiming m_documentTiming; 1408 DocumentTiming m_documentTiming;
1405 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; 1409 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher;
1406 1410
1407 #if ENABLE(REQUEST_ANIMATION_FRAME) 1411 #if ENABLE(REQUEST_ANIMATION_FRAME)
1408 typedef Vector<RefPtr<RequestAnimationFrameCallback> > RequestAnimationFrame CallbackList; 1412 OwnPtr<ScriptedAnimationController> m_scriptedAnimationController;
1409 OwnPtr<RequestAnimationFrameCallbackList> m_requestAnimationFrameCallbacks;
1410 int m_nextRequestAnimationFrameCallbackId;
1411 #endif 1413 #endif
1412 }; 1414 };
1413 1415
1414 inline bool Document::DocumentOrderedMap::contains(AtomicStringImpl* id) const 1416 inline bool Document::DocumentOrderedMap::contains(AtomicStringImpl* id) const
1415 { 1417 {
1416 return m_map.contains(id) || m_duplicateCounts.contains(id); 1418 return m_map.contains(id) || m_duplicateCounts.contains(id);
1417 } 1419 }
1418 1420
1419 inline bool Document::DocumentOrderedMap::containsMultiple(AtomicStringImpl* id) const 1421 inline bool Document::DocumentOrderedMap::containsMultiple(AtomicStringImpl* id) const
1420 { 1422 {
(...skipping 27 matching lines...) Expand all
1448 if (m_document) 1450 if (m_document)
1449 m_document->selfOnlyRef(); 1451 m_document->selfOnlyRef();
1450 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) 1452 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS)
1451 trackForDebugging(); 1453 trackForDebugging();
1452 #endif 1454 #endif
1453 } 1455 }
1454 1456
1455 } // namespace WebCore 1457 } // namespace WebCore
1456 1458
1457 #endif // Document_h 1459 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/js/ScriptDebugServer.cpp ('k') | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698