| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 3 * Copyright (C) 2005 Alexey Proskuryakov. | 3 * Copyright (C) 2005 Alexey Proskuryakov. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "sky/engine/config.h" | 27 #include "sky/engine/config.h" |
| 28 #include "sky/engine/core/editing/TextIterator.h" | 28 #include "sky/engine/core/editing/TextIterator.h" |
| 29 | 29 |
| 30 #include <unicode/usearch.h> | 30 #include <unicode/usearch.h> |
| 31 #include <unicode/utf16.h> | 31 #include <unicode/utf16.h> |
| 32 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h" | 32 #include "sky/engine/bindings2/exception_state_placeholder.h" |
| 33 #include "sky/engine/core/dom/Document.h" | 33 #include "sky/engine/core/dom/Document.h" |
| 34 #include "sky/engine/core/dom/NodeTraversal.h" | 34 #include "sky/engine/core/dom/NodeTraversal.h" |
| 35 #include "sky/engine/core/dom/shadow/ShadowRoot.h" | 35 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 36 #include "sky/engine/core/editing/VisiblePosition.h" | 36 #include "sky/engine/core/editing/VisiblePosition.h" |
| 37 #include "sky/engine/core/editing/VisibleUnits.h" | 37 #include "sky/engine/core/editing/VisibleUnits.h" |
| 38 #include "sky/engine/core/editing/htmlediting.h" | 38 #include "sky/engine/core/editing/htmlediting.h" |
| 39 #include "sky/engine/core/frame/FrameView.h" | 39 #include "sky/engine/core/frame/FrameView.h" |
| 40 #include "sky/engine/core/html/HTMLElement.h" | 40 #include "sky/engine/core/html/HTMLElement.h" |
| 41 #include "sky/engine/core/rendering/InlineTextBox.h" | 41 #include "sky/engine/core/rendering/InlineTextBox.h" |
| 42 #include "sky/engine/core/rendering/RenderBlock.h" | 42 #include "sky/engine/core/rendering/RenderBlock.h" |
| (...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1882 resultEnd = collapseTo; | 1882 resultEnd = collapseTo; |
| 1883 return; | 1883 return; |
| 1884 } | 1884 } |
| 1885 } | 1885 } |
| 1886 | 1886 |
| 1887 CharacterIterator computeRangeIterator(inputStart, inputEnd, iteratorFlagsFo
rFindPlainText); | 1887 CharacterIterator computeRangeIterator(inputStart, inputEnd, iteratorFlagsFo
rFindPlainText); |
| 1888 calculateCharacterSubrange(computeRangeIterator, matchStart, matchLength, re
sultStart, resultEnd); | 1888 calculateCharacterSubrange(computeRangeIterator, matchStart, matchLength, re
sultStart, resultEnd); |
| 1889 } | 1889 } |
| 1890 | 1890 |
| 1891 } | 1891 } |
| OLD | NEW |