| 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/dom/Position.h" | 33 #include "core/dom/Position.h" |
| 34 #include "core/dom/Text.h" | 34 #include "core/dom/Text.h" |
| 35 #include "core/editing/RenderedPosition.h" | 35 #include "core/editing/RenderedPosition.h" |
| 36 #include "core/editing/TextIterator.h" | 36 #include "core/editing/TextIterator.h" |
| 37 #include "core/editing/VisiblePosition.h" | 37 #include "core/editing/VisiblePosition.h" |
| 38 #include "core/editing/htmlediting.h" | 38 #include "core/editing/htmlediting.h" |
| 39 #include "core/platform/text/TextBoundaries.h" | 39 #include "core/platform/text/TextBoundaries.h" |
| 40 #include "core/rendering/InlineTextBox.h" | 40 #include "core/rendering/InlineTextBox.h" |
| 41 #include "core/rendering/RenderBlock.h" | 41 #include "core/rendering/RenderBlock.h" |
| 42 #include "core/rendering/RenderObject.h" | 42 #include "core/rendering/RenderObject.h" |
| 43 #include <wtf/unicode/Unicode.h> | |
| 44 | 43 |
| 45 namespace WebCore { | 44 namespace WebCore { |
| 46 | 45 |
| 47 using namespace HTMLNames; | 46 using namespace HTMLNames; |
| 48 using namespace WTF::Unicode; | 47 using namespace WTF::Unicode; |
| 49 | 48 |
| 50 static Node* previousLeafWithSameEditability(Node* node, EditableType editableTy
pe) | 49 static Node* previousLeafWithSameEditability(Node* node, EditableType editableTy
pe) |
| 51 { | 50 { |
| 52 bool editable = node->rendererIsEditable(editableType); | 51 bool editable = node->rendererIsEditable(editableType); |
| 53 node = node->previousLeafNode(); | 52 node = node->previousLeafNode(); |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1412 { | 1411 { |
| 1413 return direction == LTR ? logicalStartOfLine(c) : logicalEndOfLine(c); | 1412 return direction == LTR ? logicalStartOfLine(c) : logicalEndOfLine(c); |
| 1414 } | 1413 } |
| 1415 | 1414 |
| 1416 VisiblePosition rightBoundaryOfLine(const VisiblePosition& c, TextDirection dire
ction) | 1415 VisiblePosition rightBoundaryOfLine(const VisiblePosition& c, TextDirection dire
ction) |
| 1417 { | 1416 { |
| 1418 return direction == LTR ? logicalEndOfLine(c) : logicalStartOfLine(c); | 1417 return direction == LTR ? logicalEndOfLine(c) : logicalStartOfLine(c); |
| 1419 } | 1418 } |
| 1420 | 1419 |
| 1421 } | 1420 } |
| OLD | NEW |