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

Side by Side Diff: Source/core/dom/custom/CustomElementMicrotaskRunQueue.cpp

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" 6 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h"
7 7
8 #include "core/dom/Microtask.h" 8 #include "core/dom/Microtask.h"
9 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" 9 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h"
10 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" 10 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 m_syncQueue->dispatch(); 64 m_syncQueue->dispatch();
65 if (m_syncQueue->isEmpty()) 65 if (m_syncQueue->isEmpty())
66 m_asyncQueue->dispatch(); 66 m_asyncQueue->dispatch();
67 } 67 }
68 68
69 bool CustomElementMicrotaskRunQueue::isEmpty() const 69 bool CustomElementMicrotaskRunQueue::isEmpty() const
70 { 70 {
71 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); 71 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty();
72 } 72 }
73 73
74 #if !defined(NDEBUG)
75 void CustomElementMicrotaskRunQueue::show(unsigned indent)
76 {
77 fprintf(stderr, "Sync:\n");
78 m_syncQueue->show(indent);
79 fprintf(stderr, "Async:\n");
80 m_asyncQueue->show(indent);
81 }
82 #endif
83
84 } // namespace blink 74 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementMicrotaskRunQueue.h ('k') | Source/core/editing/EditCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698