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

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

Issue 1313013005: Add a test that we resume commits after inserting the body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dcheng@ review Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 OriginsUsingFeatures::Value& originsUsingFeaturesValue() { return m_originsU singFeaturesValue; } 1025 OriginsUsingFeatures::Value& originsUsingFeaturesValue() { return m_originsU singFeaturesValue; }
1026 1026
1027 NthIndexCache* nthIndexCache() const { return m_nthIndexCache; } 1027 NthIndexCache* nthIndexCache() const { return m_nthIndexCache; }
1028 1028
1029 bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override; 1029 bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override;
1030 1030
1031 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintsPrefe rences; } 1031 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintsPrefe rences; }
1032 1032
1033 CanvasFontCache* canvasFontCache(); 1033 CanvasFontCache* canvasFontCache();
1034 1034
1035 // Used by unit tests so that all parsing will be main thread for
1036 // controlling parsing and chunking precisely.
1037 static void setThreadedParsingEnabledForUnitTestsOnly(bool enabled);
1038 static bool threadedParsingEnabledForUnitTestsOnly();
1039
1035 void incrementNodeCount() { m_nodeCount++; } 1040 void incrementNodeCount() { m_nodeCount++; }
1036 void decrementNodeCount() 1041 void decrementNodeCount()
1037 { 1042 {
1038 ASSERT(m_nodeCount > 0); 1043 ASSERT(m_nodeCount > 0);
1039 m_nodeCount--; 1044 m_nodeCount--;
1040 } 1045 }
1041 int nodeCount() const { return m_nodeCount; } 1046 int nodeCount() const { return m_nodeCount; }
1042 1047
1043 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>; 1048 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>;
1044 static WeakDocumentSet& liveDocumentSet(); 1049 static WeakDocumentSet& liveDocumentSet();
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1429 1434
1430 } // namespace blink 1435 } // namespace blink
1431 1436
1432 #ifndef NDEBUG 1437 #ifndef NDEBUG
1433 // Outside the WebCore namespace for ease of invocation from gdb. 1438 // Outside the WebCore namespace for ease of invocation from gdb.
1434 CORE_EXPORT void showLiveDocumentInstances(); 1439 CORE_EXPORT void showLiveDocumentInstances();
1435 #endif 1440 #endif
1436 1441
1437 #endif // Document_h 1442 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698