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

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: 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
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 inline bool Node::isDocumentNode() const 1392 inline bool Node::isDocumentNode() const
1391 { 1393 {
1392 return this == document(); 1394 return this == document();
1393 } 1395 }
1394 1396
1395 Node* eventTargetNodeForDocument(Document*); 1397 Node* eventTargetNodeForDocument(Document*);
1396 1398
1397 } // namespace WebCore 1399 } // namespace WebCore
1398 1400
1399 #endif // Document_h 1401 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698