| Index: Source/core/dom/Document.h
|
| diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
|
| index 1d49b225d492a6c05dc0e851c558e68a0c34867a..da551a8e9dd227caabc52456d24cfe7b4838c2a2 100644
|
| --- a/Source/core/dom/Document.h
|
| +++ b/Source/core/dom/Document.h
|
| @@ -592,8 +592,14 @@ public:
|
| void setReadyState(ReadyState);
|
| bool isLoadCompleted();
|
|
|
| - void setParsing(bool);
|
| - bool parsing() const { return m_isParsing; }
|
| + enum ParsingState {
|
| + Parsing,
|
| + InDOMContentLoaded,
|
| + FinishedParsing
|
| + };
|
| + void setParsingState(ParsingState);
|
| + bool parsing() const { return m_parsingState == Parsing; }
|
| + bool isInDOMContentLoaded() const { return m_parsingState == InDOMContentLoaded; }
|
|
|
| bool shouldScheduleLayout() const;
|
| int elapsedTime() const;
|
| @@ -1249,7 +1255,7 @@ private:
|
|
|
| bool m_visuallyOrdered;
|
| ReadyState m_readyState;
|
| - bool m_isParsing;
|
| + ParsingState m_parsingState;
|
|
|
| bool m_gotoAnchorNeededAfterStylesheetsLoad;
|
| bool m_isDNSPrefetchEnabled;
|
|
|