| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |