| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/dom/Element.h" | 32 #include "core/dom/Element.h" |
| 33 #include "core/dom/ElementTraversal.h" | 33 #include "core/dom/ElementTraversal.h" |
| 34 #include "core/dom/NodeTraversal.h" | 34 #include "core/dom/NodeTraversal.h" |
| 35 #include "core/editing/EditingUtilities.h" | 35 #include "core/editing/EditingUtilities.h" |
| 36 #include "core/editing/Editor.h" | 36 #include "core/editing/Editor.h" |
| 37 #include "core/editing/EphemeralRange.h" | 37 #include "core/editing/EphemeralRange.h" |
| 38 #include "core/editing/VisibleUnits.h" | 38 #include "core/editing/VisibleUnits.h" |
| 39 #include "core/editing/iterators/CharacterIterator.h" | 39 #include "core/editing/iterators/CharacterIterator.h" |
| 40 #include "core/editing/markers/DocumentMarkerController.h" | 40 #include "core/editing/markers/DocumentMarkerController.h" |
| 41 #include "core/editing/spellcheck/SpellCheckRequester.h" | 41 #include "core/editing/spellcheck/SpellCheckRequester.h" |
| 42 #include "core/editing/spellcheck/TextCheckingHelper.h" | 42 #include "core/editing/spellcheck/TextCheckingParagraph.h" |
| 43 #include "core/frame/LocalFrame.h" | 43 #include "core/frame/LocalFrame.h" |
| 44 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
| 45 #include "core/html/HTMLInputElement.h" | 45 #include "core/html/HTMLInputElement.h" |
| 46 #include "core/layout/LayoutTextControl.h" | 46 #include "core/layout/LayoutTextControl.h" |
| 47 #include "core/loader/EmptyClients.h" | 47 #include "core/loader/EmptyClients.h" |
| 48 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
| 49 #include "core/page/SpellCheckerClient.h" | 49 #include "core/page/SpellCheckerClient.h" |
| 50 #include "platform/text/TextBreakIterator.h" | 50 #include "platform/text/TextBreakIterator.h" |
| 51 #include "platform/text/TextCheckerClient.h" | 51 #include "platform/text/TextCheckerClient.h" |
| 52 | 52 |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 VisiblePosition newParagraphStart = startOfNextParagraph(createVisiblePo
sition(paragraphEnd)); | 889 VisiblePosition newParagraphStart = startOfNextParagraph(createVisiblePo
sition(paragraphEnd)); |
| 890 paragraphStart = newParagraphStart.toParentAnchoredPosition(); | 890 paragraphStart = newParagraphStart.toParentAnchoredPosition(); |
| 891 paragraphEnd = endOfParagraph(newParagraphStart).toParentAnchoredPositio
n(); | 891 paragraphEnd = endOfParagraph(newParagraphStart).toParentAnchoredPositio
n(); |
| 892 firstIteration = false; | 892 firstIteration = false; |
| 893 totalLengthProcessed += currentLength; | 893 totalLengthProcessed += currentLength; |
| 894 } | 894 } |
| 895 return std::make_pair(firstFoundItem, firstFoundOffset); | 895 return std::make_pair(firstFoundItem, firstFoundOffset); |
| 896 } | 896 } |
| 897 | 897 |
| 898 } // namespace blink | 898 } // namespace blink |
| OLD | NEW |