summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLInputStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLInputStream.h')
-rw-r--r--WebCore/html/HTMLInputStream.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/WebCore/html/HTMLInputStream.h b/WebCore/html/HTMLInputStream.h
index d7c1c9c..a709bd9 100644
--- a/WebCore/html/HTMLInputStream.h
+++ b/WebCore/html/HTMLInputStream.h
@@ -64,6 +64,21 @@ public:
m_first.append(string);
}
+ bool hasInsertionPoint() const
+ {
+ if (&m_first != m_last)
+ return true;
+ if (!haveSeenEndOfFile()) {
+ // FIXME: Somehow we need to understand the difference between
+ // input streams that are coming off the network and streams that
+ // were created with document.open(). In the later case, we always
+ // have an isertion point at the end of the stream until someone
+ // calls document.close().
+ return true;
+ }
+ return false;
+ }
+
void markEndOfFile()
{
// FIXME: This should use InputStreamPreprocessor::endOfFileMarker
@@ -73,7 +88,7 @@ public:
m_last->close();
}
- bool haveSeenEndOfFile()
+ bool haveSeenEndOfFile() const
{
return m_last->isClosed();
}