| Index: Source/core/html/parser/HTMLConstructionSite.cpp
|
| diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| index af2680fc4581b737ff991d140dbaa1c937cad12d..e917706e404508585197e974f3bc50e4018ffa3e 100644
|
| --- a/Source/core/html/parser/HTMLConstructionSite.cpp
|
| +++ b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| @@ -231,13 +231,9 @@
|
| return string;
|
| }
|
|
|
| -void HTMLConstructionSite::flushPendingText(FlushMode mode)
|
| +void HTMLConstructionSite::flushPendingText()
|
| {
|
| if (m_pendingText.isEmpty())
|
| - return;
|
| -
|
| - if (mode == FlushIfAtTextLimit
|
| - && !shouldUseLengthLimit(*m_pendingText.parent))
|
| return;
|
|
|
| PendingText pendingText;
|
| @@ -273,7 +269,7 @@
|
|
|
| void HTMLConstructionSite::queueTask(const HTMLConstructionSiteTask& task)
|
| {
|
| - flushPendingText(FlushAlways);
|
| + flushPendingText();
|
| ASSERT(m_pendingText.isEmpty());
|
| m_taskQueue.append(task);
|
| }
|
| @@ -537,7 +533,7 @@
|
| void HTMLConstructionSite::processEndOfFile()
|
| {
|
| ASSERT(currentNode());
|
| - flush(FlushAlways);
|
| + flush();
|
| openElements()->popAll();
|
| }
|
|
|
| @@ -545,7 +541,7 @@
|
| {
|
| // We shouldn't have any queued tasks but we might have pending text which we need to promote to tasks and execute.
|
| ASSERT(m_taskQueue.isEmpty());
|
| - flush(FlushAlways);
|
| + flush();
|
| m_document->finishedParsing();
|
| }
|
|
|
| @@ -693,7 +689,7 @@
|
| // The nextChild != dummy.nextChild case occurs whenever foster parenting happened and we hit a new text node "<table>a</table>b"
|
| // In either case we have to flush the pending text into the task queue before making more.
|
| if (!m_pendingText.isEmpty() && (m_pendingText.parent != dummyTask.parent || m_pendingText.nextChild != dummyTask.nextChild))
|
| - flushPendingText(FlushAlways);
|
| + flushPendingText();
|
| m_pendingText.append(dummyTask.parent, dummyTask.nextChild, string, whitespaceMode);
|
| }
|
|
|
|
|