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

Unified Diff: Source/core/dom/Document.h

Issue 20140002: Remove minimumLayoutDelay() and associated machinery (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another fix Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 08627c359e7a8bca1c995c1b2fc1966b84268b10..395c9f5f18a9af8c813a98f03fd099a44a0d5624 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -299,7 +299,7 @@ public:
DocumentType* doctype() const { return m_docType.get(); }
DOMImplementation* implementation();
-
+
Element* documentElement() const
{
return m_documentElement.get();
@@ -423,7 +423,7 @@ public:
bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; }
StyleResolver* styleResolver()
- {
+ {
if (!m_styleResolver)
createStyleResolver();
return m_styleResolver.get();
@@ -529,7 +529,7 @@ public:
// to get visually ordered hebrew and arabic pages right
void setVisuallyOrdered();
bool visuallyOrdered() const { return m_visuallyOrdered; }
-
+
DocumentLoader* loader() const;
void open(Document* ownerDocument = 0);
@@ -575,17 +575,17 @@ public:
Frame* findUnsafeParentScrollPropagationBoundary();
CSSStyleSheet* elementSheet();
-
+
virtual PassRefPtr<DocumentParser> createParser();
DocumentParser* parser() const { return m_parser.get(); }
ScriptableDocumentParser* scriptableDocumentParser() const;
-
+
bool printing() const { return m_printing; }
void setPrinting(bool p) { m_printing = p; }
bool paginatedForScreen() const { return m_paginatedForScreen; }
void setPaginatedForScreen(bool p) { m_paginatedForScreen = p; }
-
+
bool paginated() const { return printing() || paginatedForScreen(); }
enum CompatibilityMode { QuirksMode, LimitedQuirksMode, NoQuirksMode };
@@ -608,11 +608,9 @@ public:
void setReadyState(ReadyState);
void setParsing(bool);
bool parsing() const { return m_bParsing; }
- int minimumLayoutDelay();
bool shouldScheduleLayout();
- bool isLayoutTimerActive();
- int elapsedTime() const;
+ bool parserShouldYieldAgressivelyBeforeFirstLayout();
TextLinkColors& textLinkColors() { return m_textLinkColors; }
VisitedLinkState* visitedLinkState() const { return m_visitedLinkState.get(); }
@@ -633,7 +631,7 @@ public:
const UserActionElementSet& userActionElements() const { return m_userActionElements; }
void didRunCheckFocusedElementTask() { m_didPostCheckFocusedElementTask = false; }
- // The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough
+ // The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough
// for WebCore to ignore the autofocus attribute on any form controls
bool ignoreAutofocus() const { return m_ignoreAutofocus; };
void setIgnoreAutofocus(bool shouldIgnore = true) { m_ignoreAutofocus = shouldIgnore; };
@@ -687,7 +685,7 @@ public:
void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; }
DOMWindow* domWindow() const { return m_domWindow; }
// In DOM Level 2, the Document's DOMWindow is called the defaultView.
- DOMWindow* defaultView() const { return domWindow(); }
+ DOMWindow* defaultView() const { return domWindow(); }
// Helper functions for forwarding DOMWindow event related tasks to the DOMWindow if it exists.
void setWindowAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, DOMWrapperWorld* isolatedWorld = 0);
@@ -780,7 +778,7 @@ public:
void setCookieURL(const KURL& url) { m_cookieURL = url; }
const KURL& firstPartyForCookies() const;
-
+
// The following implements the rule from HTML 4 for what valid names are.
// To get this right for all the XML cases, we probably have to improve this or move it
// and make it sensitive to the type of document.
@@ -817,7 +815,7 @@ public:
KURL openSearchDescriptionURL();
// designMode support
- enum InheritedBool { off = false, on = true, inherit };
+ enum InheritedBool { off = false, on = true, inherit };
void setDesignMode(InheritedBool value);
InheritedBool getDesignMode() const;
bool inDesignMode() const;
@@ -858,7 +856,7 @@ public:
void updateFocusAppearanceSoon(bool restorePreviousSelection);
void cancelFocusAppearanceUpdate();
-
+
// Extension for manipulating canvas drawing contexts for use in CSS
CanvasRenderingContext* getCSSCanvasContext(const String& type, const String& name, int width, int height);
HTMLCanvasElement* getCSSCanvasElement(const String& name);
@@ -1176,7 +1174,7 @@ private:
uint64_t m_domTreeVersion;
static uint64_t s_globalTreeVersion;
-
+
HashSet<NodeIterator*> m_nodeIterators;
HashSet<Range*> m_ranges;
@@ -1219,7 +1217,7 @@ private:
OwnPtr<AXObjectCache> m_axObjectCache;
OwnPtr<DocumentMarkerController> m_markers;
-
+
Timer<Document> m_updateFocusAppearanceTimer;
Element* m_cssTarget;
@@ -1232,9 +1230,7 @@ private:
bool m_loadEventFinished;
RefPtr<SerializedScriptValue> m_pendingStateObject;
- double m_startTime;
- bool m_overMinimumLayoutThreshold;
-
+
OwnPtr<ScriptRunner> m_scriptRunner;
Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack;
@@ -1301,7 +1297,7 @@ private:
RefPtr<MediaQueryMatcher> m_mediaQueryMatcher;
bool m_writeRecursionIsTooDeep;
unsigned m_writeRecursionDepth;
-
+
unsigned m_wheelEventHandlerCount;
OwnPtr<TouchEventTargetSet> m_touchEventTargets;
@@ -1319,7 +1315,7 @@ private:
RefPtr<CustomElementRegistrationContext> m_registrationContext;
bool m_scheduledTasksAreSuspended;
-
+
RefPtr<NamedFlowCollection> m_namedFlows;
RefPtr<DOMSecurityPolicy> m_domSecurityPolicy;

Powered by Google App Engine
This is Rietveld 408576698