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

Unified Diff: Source/core/html/imports/HTMLImportState.h

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT. Created 6 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
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/html/imports/HTMLImportStateResolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportState.h
diff --git a/Source/core/html/imports/HTMLImportState.h b/Source/core/html/imports/HTMLImportState.h
index 6c3c14080f4e00c7ce933f6c951e0f3377d5d3d1..356a40df39bf28967c1b21b7e6688582f2a04a54 100644
--- a/Source/core/html/imports/HTMLImportState.h
+++ b/Source/core/html/imports/HTMLImportState.h
@@ -38,19 +38,17 @@ namespace WebCore {
class HTMLImportState {
public:
enum Value {
- BlockingDocumentCreation = 0,
- BlockingScriptExecution,
+ BlockingScriptExecution = 0,
Active,
Ready,
Invalid
};
- explicit HTMLImportState(Value value = BlockingDocumentCreation)
+ explicit HTMLImportState(Value value = BlockingScriptExecution)
: m_value(value)
{ }
bool shouldBlockScriptExecution() const { return checkedValue() <= BlockingScriptExecution; }
- bool shouldBlockDocumentCreation() const { return checkedValue() <= BlockingDocumentCreation; }
bool isReady() const { return checkedValue() == Ready; }
bool isValid() const { return m_value != Invalid; }
bool operator==(const HTMLImportState& other) const { return m_value == other.m_value; }
@@ -62,7 +60,7 @@ public:
#endif
static HTMLImportState invalidState() { return HTMLImportState(Invalid); }
- static HTMLImportState blockedState() { return HTMLImportState(BlockingDocumentCreation); }
+ static HTMLImportState blockedState() { return HTMLImportState(BlockingScriptExecution); }
private:
Value checkedValue() const;
Value m_value;
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/html/imports/HTMLImportStateResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698