| Index: Source/core/html/parser/HTMLConstructionSite.h
|
| diff --git a/Source/core/html/parser/HTMLConstructionSite.h b/Source/core/html/parser/HTMLConstructionSite.h
|
| index 9d85b5e3cfa13ca217b81648594f131eceab39a7..48be3b05cd51924a4c44ada45cacdb078eef3c85 100644
|
| --- a/Source/core/html/parser/HTMLConstructionSite.h
|
| +++ b/Source/core/html/parser/HTMLConstructionSite.h
|
| @@ -92,14 +92,6 @@
|
| AllWhitespace,
|
| };
|
|
|
| -enum FlushMode {
|
| - // Flush pending text. Flush queued tasks.
|
| - FlushAlways,
|
| -
|
| - // Flush pending text if node has length limit. Flush queued tasks.
|
| - FlushIfAtTextLimit,
|
| -};
|
| -
|
| class AtomicHTMLToken;
|
| class Document;
|
| class Element;
|
| @@ -121,16 +113,16 @@
|
| void executeQueuedTasks();
|
|
|
| // flushPendingText turns pending text into queued Text insertions, but does not execute them.
|
| - void flushPendingText(FlushMode);
|
| + void flushPendingText();
|
|
|
| // Called before every token in HTMLTreeBuilder::processToken, thus inlined:
|
| - void flush(FlushMode mode)
|
| + void flush()
|
| {
|
| if (!hasPendingTasks())
|
| return;
|
| - flushPendingText(mode);
|
| + flushPendingText();
|
| executeQueuedTasks(); // NOTE: Possible reentrancy via JavaScript execution.
|
| - ASSERT(mode == FlushIfAtTextLimit || !hasPendingTasks());
|
| + ASSERT(!hasPendingTasks());
|
| }
|
|
|
| bool hasPendingTasks()
|
|
|