| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "core/editing/Position.h" | 29 #include "core/editing/Position.h" |
| 30 #include "core/editing/iterators/BackwardsTextBuffer.h" | 30 #include "core/editing/iterators/BackwardsTextBuffer.h" |
| 31 #include "core/editing/iterators/FullyClippedStateStack.h" | 31 #include "core/editing/iterators/FullyClippedStateStack.h" |
| 32 #include "core/editing/iterators/TextIteratorFlags.h" | 32 #include "core/editing/iterators/TextIteratorFlags.h" |
| 33 #include "platform/heap/Heap.h" | 33 #include "platform/heap/Heap.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class LayoutText; | 37 class LayoutText; |
| 38 class LayoutTextFragment; | |
| 39 | 38 |
| 40 // Iterates through the DOM range, returning all the text, and 0-length | 39 // Iterates through the DOM range, returning all the text, and 0-length |
| 41 // boundaries at points where replaced elements break up the text flow. The text | 40 // boundaries at points where replaced elements break up the text flow. The text |
| 42 // comes back in chunks so as to optimize for performance of the iteration. | 41 // comes back in chunks so as to optimize for performance of the iteration. |
| 43 template <typename Strategy> | 42 template <typename Strategy> |
| 44 class CORE_TEMPLATE_CLASS_EXPORT SimplifiedBackwardsTextIteratorAlgorithm { | 43 class CORE_TEMPLATE_CLASS_EXPORT SimplifiedBackwardsTextIteratorAlgorithm { |
| 45 STACK_ALLOCATED(); | 44 STACK_ALLOCATED(); |
| 46 | 45 |
| 47 public: | 46 public: |
| 48 SimplifiedBackwardsTextIteratorAlgorithm( | 47 SimplifiedBackwardsTextIteratorAlgorithm( |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 SimplifiedBackwardsTextIteratorAlgorithm<EditingStrategy>; | 148 SimplifiedBackwardsTextIteratorAlgorithm<EditingStrategy>; |
| 150 extern template class CORE_EXTERN_TEMPLATE_EXPORT | 149 extern template class CORE_EXTERN_TEMPLATE_EXPORT |
| 151 SimplifiedBackwardsTextIteratorAlgorithm<EditingInFlatTreeStrategy>; | 150 SimplifiedBackwardsTextIteratorAlgorithm<EditingInFlatTreeStrategy>; |
| 152 | 151 |
| 153 using SimplifiedBackwardsTextIterator = | 152 using SimplifiedBackwardsTextIterator = |
| 154 SimplifiedBackwardsTextIteratorAlgorithm<EditingStrategy>; | 153 SimplifiedBackwardsTextIteratorAlgorithm<EditingStrategy>; |
| 155 | 154 |
| 156 } // namespace blink | 155 } // namespace blink |
| 157 | 156 |
| 158 #endif // SimplifiedBackwardsTextIterator_h | 157 #endif // SimplifiedBackwardsTextIterator_h |
| OLD | NEW |