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

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

Issue 2567943004: Rename blink::Document::ReadyState enum to DocumentReadyState. (Closed)
Patch Set: Created 4 years 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 CompatibilityMode getCompatibilityMode() const { return m_compatibilityMode; } 667 CompatibilityMode getCompatibilityMode() const { return m_compatibilityMode; }
668 668
669 String compatMode() const; 669 String compatMode() const;
670 670
671 bool inQuirksMode() const { return m_compatibilityMode == QuirksMode; } 671 bool inQuirksMode() const { return m_compatibilityMode == QuirksMode; }
672 bool inLimitedQuirksMode() const { 672 bool inLimitedQuirksMode() const {
673 return m_compatibilityMode == LimitedQuirksMode; 673 return m_compatibilityMode == LimitedQuirksMode;
674 } 674 }
675 bool inNoQuirksMode() const { return m_compatibilityMode == NoQuirksMode; } 675 bool inNoQuirksMode() const { return m_compatibilityMode == NoQuirksMode; }
676 676
677 enum ReadyState { Loading, Interactive, Complete }; 677 // https://html.spec.whatwg.org/multipage/dom.html#documentreadystate
678 void setReadyState(ReadyState); 678 enum DocumentReadyState { Loading, Interactive, Complete };
679
680 void setReadyState(DocumentReadyState);
679 bool isLoadCompleted(); 681 bool isLoadCompleted();
680 682
681 enum ParsingState { Parsing, InDOMContentLoaded, FinishedParsing }; 683 enum ParsingState { Parsing, InDOMContentLoaded, FinishedParsing };
682 void setParsingState(ParsingState); 684 void setParsingState(ParsingState);
683 bool parsing() const { return m_parsingState == Parsing; } 685 bool parsing() const { return m_parsingState == Parsing; }
684 bool isInDOMContentLoaded() const { 686 bool isInDOMContentLoaded() const {
685 return m_parsingState == InDOMContentLoaded; 687 return m_parsingState == InDOMContentLoaded;
686 } 688 }
687 bool hasFinishedParsing() const { return m_parsingState == FinishedParsing; } 689 bool hasFinishedParsing() const { return m_parsingState == FinishedParsing; }
688 690
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 1507
1506 TraceWrapperMember<StyleEngine> m_styleEngine; 1508 TraceWrapperMember<StyleEngine> m_styleEngine;
1507 TraceWrapperMember<StyleSheetList> m_styleSheetList; 1509 TraceWrapperMember<StyleSheetList> m_styleSheetList;
1508 1510
1509 Member<FormController> m_formController; 1511 Member<FormController> m_formController;
1510 1512
1511 TextLinkColors m_textLinkColors; 1513 TextLinkColors m_textLinkColors;
1512 const Member<VisitedLinkState> m_visitedLinkState; 1514 const Member<VisitedLinkState> m_visitedLinkState;
1513 1515
1514 bool m_visuallyOrdered; 1516 bool m_visuallyOrdered;
1515 ReadyState m_readyState; 1517
1518 DocumentReadyState m_readyState;
1516 ParsingState m_parsingState; 1519 ParsingState m_parsingState;
1517 1520
1518 bool m_gotoAnchorNeededAfterStylesheetsLoad; 1521 bool m_gotoAnchorNeededAfterStylesheetsLoad;
1519 bool m_isDNSPrefetchEnabled; 1522 bool m_isDNSPrefetchEnabled;
1520 bool m_haveExplicitlyDisabledDNSPrefetch; 1523 bool m_haveExplicitlyDisabledDNSPrefetch;
1521 bool m_containsValidityStyleRules; 1524 bool m_containsValidityStyleRules;
1522 bool m_containsPlugins; 1525 bool m_containsPlugins;
1523 SelectionBehaviorOnFocus m_updateFocusAppearanceSelectionBahavior; 1526 SelectionBehaviorOnFocus m_updateFocusAppearanceSelectionBahavior;
1524 1527
1525 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-write s-counter 1528 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-write s-counter
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1720 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1718 1721
1719 } // namespace blink 1722 } // namespace blink
1720 1723
1721 #ifndef NDEBUG 1724 #ifndef NDEBUG
1722 // Outside the WebCore namespace for ease of invocation from gdb. 1725 // Outside the WebCore namespace for ease of invocation from gdb.
1723 CORE_EXPORT void showLiveDocumentInstances(); 1726 CORE_EXPORT void showLiveDocumentInstances();
1724 #endif 1727 #endif
1725 1728
1726 #endif // Document_h 1729 #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