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

Unified Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 771933002: Remove dead markup serialization code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | sky/engine/web/WebNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebLocalFrameImpl.cpp
diff --git a/sky/engine/web/WebLocalFrameImpl.cpp b/sky/engine/web/WebLocalFrameImpl.cpp
index 9ad8d129aaaff271066e7caedc28fc5a33cb7336..c0c2ce661a829cb5f92085c709840e18453139e3 100644
--- a/sky/engine/web/WebLocalFrameImpl.cpp
+++ b/sky/engine/web/WebLocalFrameImpl.cpp
@@ -94,7 +94,6 @@
#include "sky/engine/core/editing/TextAffinity.h"
#include "sky/engine/core/editing/TextIterator.h"
#include "sky/engine/core/editing/htmlediting.h"
-#include "sky/engine/core/editing/markup.h"
#include "sky/engine/core/frame/Console.h"
#include "sky/engine/core/frame/FrameHost.h"
#include "sky/engine/core/frame/FrameView.h"
@@ -541,15 +540,6 @@ WebString WebLocalFrameImpl::selectionAsText() const
return text;
}
-WebString WebLocalFrameImpl::selectionAsMarkup() const
-{
- RefPtr<Range> range = frame()->selection().toNormalizedRange();
- if (!range)
- return WebString();
-
- return createMarkup(range.get(), 0, AnnotateForInterchange, false, ResolveNonLocalURLs);
-}
-
void WebLocalFrameImpl::selectWordAroundPosition(LocalFrame* frame, VisiblePosition position)
{
VisibleSelection selection(position);
@@ -648,13 +638,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;
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | sky/engine/web/WebNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698