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

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

Issue 146023008: Add layout states to DocumentLifecycle state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whitelist one more transition' Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 1018
1019 void didAssociateFormControl(Element*); 1019 void didAssociateFormControl(Element*);
1020 1020
1021 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con st String& message, unsigned long requestIdentifier); 1021 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con st String& message, unsigned long requestIdentifier);
1022 1022
1023 virtual DOMWindow* executingWindow() OVERRIDE FINAL; 1023 virtual DOMWindow* executingWindow() OVERRIDE FINAL;
1024 virtual void userEventWasHandled() OVERRIDE FINAL { resetLastHandledUserGest ureTimestamp(); } 1024 virtual void userEventWasHandled() OVERRIDE FINAL { resetLastHandledUserGest ureTimestamp(); }
1025 Frame* executingFrame(); 1025 Frame* executingFrame();
1026 1026
1027 DocumentLifecycleNotifier& lifecycleNotifier(); 1027 DocumentLifecycleNotifier& lifecycleNotifier();
1028 DocumentLifecycle& lifecycle() { return m_lifecycle; }
1028 bool isActive() const { return m_lifecycle.isActive(); } 1029 bool isActive() const { return m_lifecycle.isActive(); }
1029 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; } 1030 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; }
1030 1031
1031 enum HttpRefreshType { 1032 enum HttpRefreshType {
1032 HttpRefreshFromHeader, 1033 HttpRefreshFromHeader,
1033 HttpRefreshFromMetaTag 1034 HttpRefreshFromMetaTag
1034 }; 1035 };
1035 void maybeHandleHttpRefresh(const String&, HttpRefreshType); 1036 void maybeHandleHttpRefresh(const String&, HttpRefreshType);
1036 1037
1037 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); 1038 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 void processHttpEquivDefaultStyle(const AtomicString& content); 1132 void processHttpEquivDefaultStyle(const AtomicString& content);
1132 void processHttpEquivRefresh(const AtomicString& content); 1133 void processHttpEquivRefresh(const AtomicString& content);
1133 void processHttpEquivSetCookie(const AtomicString& content); 1134 void processHttpEquivSetCookie(const AtomicString& content);
1134 void processHttpEquivXFrameOptions(const AtomicString& content); 1135 void processHttpEquivXFrameOptions(const AtomicString& content);
1135 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content); 1136 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content);
1136 1137
1137 void didRemoveTouchEventHandler(Node*, bool clearAll); 1138 void didRemoveTouchEventHandler(Node*, bool clearAll);
1138 1139
1139 // Returns true if Document::recalcStyle() needs to be run. 1140 // Returns true if Document::recalcStyle() needs to be run.
1140 bool shouldCallRecalcStyleForDocument(); 1141 bool shouldCallRecalcStyleForDocument();
1142 bool shouldScheduleStyleRecalc();
1141 1143
1142 DocumentLifecycle m_lifecycle; 1144 DocumentLifecycle m_lifecycle;
1143 1145
1144 bool m_hasNodesWithPlaceholderStyle; 1146 bool m_hasNodesWithPlaceholderStyle;
1145 bool m_needsNotifyRemoveAllPendingStylesheet; 1147 bool m_needsNotifyRemoveAllPendingStylesheet;
1146 bool m_evaluateMediaQueriesOnStyleRecalc; 1148 bool m_evaluateMediaQueriesOnStyleRecalc;
1147 1149
1148 // If we do ignore the pending stylesheet count, then we need to add a boole an 1150 // If we do ignore the pending stylesheet count, then we need to add a boole an
1149 // to track that this happened so that we can do a full repaint when the sty lesheets 1151 // to track that this happened so that we can do a full repaint when the sty lesheets
1150 // do eventually load. 1152 // do eventually load.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 inline bool Node::isDocumentNode() const 1393 inline bool Node::isDocumentNode() const
1392 { 1394 {
1393 return this == document(); 1395 return this == document();
1394 } 1396 }
1395 1397
1396 Node* eventTargetNodeForDocument(Document*); 1398 Node* eventTargetNodeForDocument(Document*);
1397 1399
1398 } // namespace WebCore 1400 } // namespace WebCore
1399 1401
1400 #endif // Document_h 1402 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698