diff --git a/engine/public/web/WebFrame.h b/engine/public/web/WebFrame.h index 4792577aa70..aa9dd9bfca5 100644 --- a/engine/public/web/WebFrame.h +++ b/engine/public/web/WebFrame.h @@ -279,10 +279,6 @@ public: // frame will be separated by an empty line. virtual WebString contentAsText(size_t maxChars) const = 0; - // Returns HTML text for the contents of this frame. This is generated - // from the DOM. - virtual WebString contentAsMarkup() const = 0; - // Returns a text representation of the render tree. This method is used // to support layout tests. virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTextNormal) const = 0; diff --git a/engine/web/WebLocalFrameImpl.cpp b/engine/web/WebLocalFrameImpl.cpp index b0a31724e4f..78071fddd3e 100644 --- a/engine/web/WebLocalFrameImpl.cpp +++ b/engine/web/WebLocalFrameImpl.cpp @@ -648,13 +648,6 @@ WebString WebLocalFrameImpl::contentAsText(size_t maxChars) const return text.toString(); } -WebString WebLocalFrameImpl::contentAsMarkup() const -{ - if (!frame()) - return WebString(); - return createMarkup(frame()->document()); -} - WebString WebLocalFrameImpl::renderTreeAsText(RenderAsTextControls toShow) const { RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal; diff --git a/engine/web/WebLocalFrameImpl.h b/engine/web/WebLocalFrameImpl.h index 94e0acd2fe8..9dc74c7481f 100644 --- a/engine/web/WebLocalFrameImpl.h +++ b/engine/web/WebLocalFrameImpl.h @@ -121,7 +121,6 @@ public: virtual void setCaretVisible(bool) override; virtual WebString contentAsText(size_t maxChars) const override; - virtual WebString contentAsMarkup() const override; virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTextNormal) const override; virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const override; diff --git a/framework/dom-serializer.sky b/framework/dom-serializer.sky new file mode 100644 index 00000000000..ac352fffde8 --- /dev/null +++ b/framework/dom-serializer.sky @@ -0,0 +1,74 @@ + diff --git a/tests/parser/html-expected.txt b/tests/parser/html-expected.txt index d050c426dc1..9a58594dfe7 100644 --- a/tests/parser/html-expected.txt +++ b/tests/parser/html-expected.txt @@ -17,6 +17,7 @@ M
N O