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

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

Issue 2837763003: Reland "Move most of FrameLoader::CheckCompleted() to Document" (Closed)
Patch Set: Fix comment typos Created 3 years, 8 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: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index c650a95bd9df0b206c80b9e9e4e8ca4b9fbbaa72..208594ee979eab37cce0e2b25ac9a96c579a25d2 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -566,8 +566,8 @@ class CORE_EXPORT Document : public ContainerNode,
void close(ExceptionState&);
// This is used internally and does not handle exceptions.
void close();
- // implicitClose() actually does the work of closing the input stream.
- void ImplicitClose();
+
+ void CheckCompleted();
bool DispatchBeforeUnloadEvent(ChromeClient&,
bool is_reload,
@@ -680,9 +680,6 @@ class CORE_EXPORT Document : public ContainerNode,
enum ParsingState { kParsing, kInDOMContentLoaded, kFinishedParsing };
void SetParsingState(ParsingState);
bool Parsing() const { return parsing_state_ == kParsing; }
- bool IsInDOMContentLoaded() const {
- return parsing_state_ == kInDOMContentLoaded;
- }
bool HasFinishedParsing() const { return parsing_state_ == kFinishedParsing; }
bool ShouldScheduleLayout() const;
@@ -1051,9 +1048,6 @@ class CORE_EXPORT Document : public ContainerNode,
bool LoadEventStillNeeded() const {
return load_event_progress_ == kLoadEventNotRun;
}
- bool ProcessingLoadEvent() const {
- return load_event_progress_ == kLoadEventInProgress;
- }
bool LoadEventFinished() const {
return load_event_progress_ >= kLoadEventCompleted;
}
@@ -1164,7 +1158,6 @@ class CORE_EXPORT Document : public ContainerNode,
}
HTMLImportLoader* ImportLoader() const;
- bool HaveImportsLoaded() const;
void DidLoadAllImports();
void AdjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>&,
@@ -1374,6 +1367,10 @@ class CORE_EXPORT Document : public ContainerNode,
void UpdateStyle();
void NotifyLayoutTreeOfSubtreeChanges();
+ // ImplicitClose() actually does the work of closing the input stream.
+ void ImplicitClose();
+ bool ShouldComplete();
+
void DetachParser();
void BeginLifecycleUpdatesIfRenderingReady();
@@ -1439,6 +1436,8 @@ class CORE_EXPORT Document : public ContainerNode,
void RunExecutionContextTask(std::unique_ptr<ExecutionContextTask>,
bool instrumenting);
+ bool HaveImportsLoaded() const;
+
DocumentLifecycle lifecycle_;
bool has_nodes_with_placeholder_style_;

Powered by Google App Engine
This is Rietveld 408576698