Chromium Code Reviews| Index: Source/core/dom/Document.h |
| diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
| index 1d49b225d492a6c05dc0e851c558e68a0c34867a..562c7aaafa2433a7cf71548c0322b5bd0296680c 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, |
| + Done |
|
sof
2014/11/14 21:34:02
Done is a bit short & generic... DoneParsing, Fini
Nate Chapin
2014/11/14 22:05:25
Good point. FinishedParsing is probably the most c
|
| + }; |
| + 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; |