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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2729493002: 'haveImportsLoaded' shouldn't block rendering, if ignoringPendingStylesheets. (Closed)
Patch Set: call EXPECT_TRUE twice Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 StyleResolver& ensureStyleResolver() const; 442 StyleResolver& ensureStyleResolver() const;
443 443
444 bool isViewSource() const { return m_isViewSource; } 444 bool isViewSource() const { return m_isViewSource; }
445 void setIsViewSource(bool); 445 void setIsViewSource(bool);
446 446
447 bool sawElementsInKnownNamespaces() const { 447 bool sawElementsInKnownNamespaces() const {
448 return m_sawElementsInKnownNamespaces; 448 return m_sawElementsInKnownNamespaces;
449 } 449 }
450 450
451 bool canExecuteScripts(ReasonForCallingCanExecuteScripts) override; 451 bool canExecuteScripts(ReasonForCallingCanExecuteScripts) override;
452 bool isRenderingReady() const { 452 bool isRenderingReady() const;
453 return haveImportsLoaded() && haveRenderBlockingStylesheetsLoaded();
454 }
455 bool isScriptExecutionReady() const { 453 bool isScriptExecutionReady() const {
456 return haveImportsLoaded() && haveScriptBlockingStylesheetsLoaded(); 454 return haveImportsLoaded() && haveScriptBlockingStylesheetsLoaded();
457 } 455 }
458 456
459 // This is a DOM function. 457 // This is a DOM function.
460 StyleSheetList& styleSheets(); 458 StyleSheetList& styleSheets();
461 459
462 StyleEngine& styleEngine() { 460 StyleEngine& styleEngine() {
463 DCHECK(m_styleEngine.get()); 461 DCHECK(m_styleEngine.get());
464 return *m_styleEngine.get(); 462 return *m_styleEngine.get();
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1722 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1725 1723
1726 } // namespace blink 1724 } // namespace blink
1727 1725
1728 #ifndef NDEBUG 1726 #ifndef NDEBUG
1729 // Outside the WebCore namespace for ease of invocation from gdb. 1727 // Outside the WebCore namespace for ease of invocation from gdb.
1730 CORE_EXPORT void showLiveDocumentInstances(); 1728 CORE_EXPORT void showLiveDocumentInstances();
1731 #endif 1729 #endif
1732 1730
1733 #endif // Document_h 1731 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698