| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "core/layout/api/LayoutViewItem.h" | 59 #include "core/layout/api/LayoutViewItem.h" |
| 60 #include "core/layout/api/LineLayoutAPIShim.h" | 60 #include "core/layout/api/LineLayoutAPIShim.h" |
| 61 #include "core/layout/api/LineLayoutItem.h" | 61 #include "core/layout/api/LineLayoutItem.h" |
| 62 #include "core/layout/line/InlineIterator.h" | 62 #include "core/layout/line/InlineIterator.h" |
| 63 #include "core/layout/line/InlineTextBox.h" | 63 #include "core/layout/line/InlineTextBox.h" |
| 64 #include "core/paint/PaintLayer.h" | 64 #include "core/paint/PaintLayer.h" |
| 65 #include "platform/Logging.h" | 65 #include "platform/Logging.h" |
| 66 #include "platform/RuntimeEnabledFeatures.h" | 66 #include "platform/RuntimeEnabledFeatures.h" |
| 67 #include "platform/heap/Handle.h" | 67 #include "platform/heap/Handle.h" |
| 68 #include "platform/text/TextBoundaries.h" | 68 #include "platform/text/TextBoundaries.h" |
| 69 #include "platform/text/TextBreakIterator.h" |
| 69 | 70 |
| 70 namespace blink { | 71 namespace blink { |
| 71 | 72 |
| 72 template <typename PositionType> | 73 template <typename PositionType> |
| 73 static PositionType canonicalizeCandidate(const PositionType& candidate) | 74 static PositionType canonicalizeCandidate(const PositionType& candidate) |
| 74 { | 75 { |
| 75 if (candidate.isNull()) | 76 if (candidate.isNull()) |
| 76 return PositionType(); | 77 return PositionType(); |
| 77 DCHECK(isVisuallyEquivalentCandidate(candidate)); | 78 DCHECK(isVisuallyEquivalentCandidate(candidate)); |
| 78 PositionType upstream = mostBackwardCaretPosition(candidate); | 79 PositionType upstream = mostBackwardCaretPosition(candidate); |
| (...skipping 3174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3253 { | 3254 { |
| 3254 return previousPositionOfAlgorithm<EditingStrategy>(visiblePosition, rule); | 3255 return previousPositionOfAlgorithm<EditingStrategy>(visiblePosition, rule); |
| 3255 } | 3256 } |
| 3256 | 3257 |
| 3257 VisiblePositionInFlatTree previousPositionOf(const VisiblePositionInFlatTree& vi
siblePosition, EditingBoundaryCrossingRule rule) | 3258 VisiblePositionInFlatTree previousPositionOf(const VisiblePositionInFlatTree& vi
siblePosition, EditingBoundaryCrossingRule rule) |
| 3258 { | 3259 { |
| 3259 return previousPositionOfAlgorithm<EditingInFlatTreeStrategy>(visiblePositio
n, rule); | 3260 return previousPositionOfAlgorithm<EditingInFlatTreeStrategy>(visiblePositio
n, rule); |
| 3260 } | 3261 } |
| 3261 | 3262 |
| 3262 } // namespace blink | 3263 } // namespace blink |
| OLD | NEW |