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

Side by Side Diff: sky/engine/core/dom/custom/CustomElementMicrotaskRunQueue.cpp

Issue 665613003: Remove the ability to parse HTML fragments (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 "base/bind.h" 8 #include "base/bind.h"
9 #include "core/dom/Microtask.h" 9 #include "core/dom/Microtask.h"
10 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" 10 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 m_syncQueue->dispatch(); 59 m_syncQueue->dispatch();
60 if (m_syncQueue->isEmpty()) 60 if (m_syncQueue->isEmpty())
61 m_asyncQueue->dispatch(); 61 m_asyncQueue->dispatch();
62 } 62 }
63 63
64 bool CustomElementMicrotaskRunQueue::isEmpty() const 64 bool CustomElementMicrotaskRunQueue::isEmpty() const
65 { 65 {
66 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); 66 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty();
67 } 67 }
68 68
69 #if !defined(NDEBUG)
70 void CustomElementMicrotaskRunQueue::show(unsigned indent)
71 {
72 fprintf(stderr, "Sync:\n");
73 m_syncQueue->show(indent);
74 fprintf(stderr, "Async:\n");
75 m_asyncQueue->show(indent);
76 }
77 #endif
78
79 } // namespace blink 69 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698