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

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

Issue 288323004: HTML Imports: Get rid of needsProcessOrStop() from dom/custom/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Renamed to isWaitingForCustomElementMicrosteps() Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 if (!(result & ShouldStop) && !shouldWaitForImport()) 84 if (!(result & ShouldStop) && !shouldWaitForImport())
85 didUpgradeAllCustomElements(); 85 didUpgradeAllCustomElements();
86 86
87 if (shouldWaitForImport()) 87 if (shouldWaitForImport())
88 result = Result(result | ShouldRemain | ShouldStop); 88 result = Result(result | ShouldRemain | ShouldStop);
89 if (!shouldStopProcessing()) 89 if (!shouldStopProcessing())
90 result = Result(result & ~ShouldStop); 90 result = Result(result & ~ShouldStop);
91 return result; 91 return result;
92 } 92 }
93 93
94 bool CustomElementMicrotaskImportStep::needsProcessOrStop() const
95 {
96 return shouldStopProcessing() || m_queue->needsProcessOrStop();
97 }
98
99 #if !defined(NDEBUG) 94 #if !defined(NDEBUG)
100 void CustomElementMicrotaskImportStep::show(unsigned indent) 95 void CustomElementMicrotaskImportStep::show(unsigned indent)
101 { 96 {
102 fprintf(stderr, "%*sImport(wait=%d sync=%d, url=%s)\n", indent, "", shouldWa itForImport(), shouldStopProcessing(), m_import ? m_import->url().string().utf8( ).data() : "null"); 97 fprintf(stderr, "%*sImport(wait=%d sync=%d, url=%s)\n", indent, "", shouldWa itForImport(), shouldStopProcessing(), m_import ? m_import->url().string().utf8( ).data() : "null");
103 m_queue->show(indent + 1); 98 m_queue->show(indent + 1);
104 } 99 }
105 #endif 100 #endif
106 101
107 } // namespace WebCore 102 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698