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

Side by Side Diff: sky/engine/web/WebRange.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 unified diff | Download patch
« no previous file with comments | « sky/engine/web/WebNode.cpp ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 WebNode WebRange::endContainer(WebExceptionCode& exceptionCode) const 80 WebNode WebRange::endContainer(WebExceptionCode& exceptionCode) const
81 { 81 {
82 // FIXME: Create a wrapper class that just sets the internal int. 82 // FIXME: Create a wrapper class that just sets the internal int.
83 RefPtr<Node> node(m_private->endContainer()); 83 RefPtr<Node> node(m_private->endContainer());
84 exceptionCode = 0; 84 exceptionCode = 0;
85 return node.release(); 85 return node.release();
86 } 86 }
87 87
88 WebString WebRange::toHTMLText() const
89 {
90 return m_private->toHTML();
91 }
92
93 WebString WebRange::toPlainText() const 88 WebString WebRange::toPlainText() const
94 { 89 {
95 return m_private->text(); 90 return m_private->text();
96 } 91 }
97 92
98 WebRange WebRange::expandedToParagraph() const 93 WebRange WebRange::expandedToParagraph() const
99 { 94 {
100 WebRange copy(*this); 95 WebRange copy(*this);
101 copy.m_private->expand("block", IGNORE_EXCEPTION); 96 copy.m_private->expand("block", IGNORE_EXCEPTION);
102 return copy; 97 return copy;
(...skipping 12 matching lines...) Expand all
115 : m_private(range) 110 : m_private(range)
116 { 111 {
117 } 112 }
118 113
119 WebRange::operator PassRefPtr<Range>() const 114 WebRange::operator PassRefPtr<Range>() const
120 { 115 {
121 return m_private.get(); 116 return m_private.get();
122 } 117 }
123 118
124 } // namespace blink 119 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/WebNode.cpp ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698