| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/Element.h" | 31 #include "core/dom/Element.h" |
| 32 #include "core/dom/NodeTraversal.h" | 32 #include "core/dom/NodeTraversal.h" |
| 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/VisibleSelection.h" | |
| 39 #include "core/editing/htmlediting.h" | 38 #include "core/editing/htmlediting.h" |
| 40 #include "core/platform/text/TextBoundaries.h" | 39 #include "core/platform/text/TextBoundaries.h" |
| 41 #include "core/rendering/InlineTextBox.h" | 40 #include "core/rendering/InlineTextBox.h" |
| 42 #include "core/rendering/RenderBlock.h" | 41 #include "core/rendering/RenderBlock.h" |
| 43 #include "core/rendering/RenderObject.h" | 42 #include "core/rendering/RenderObject.h" |
| 44 #include <wtf/unicode/Unicode.h> | 43 #include <wtf/unicode/Unicode.h> |
| 45 | 44 |
| 46 namespace WebCore { | 45 namespace WebCore { |
| 47 | 46 |
| 48 using namespace HTMLNames; | 47 using namespace HTMLNames; |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 { | 1412 { |
| 1414 return direction == LTR ? logicalStartOfLine(c) : logicalEndOfLine(c); | 1413 return direction == LTR ? logicalStartOfLine(c) : logicalEndOfLine(c); |
| 1415 } | 1414 } |
| 1416 | 1415 |
| 1417 VisiblePosition rightBoundaryOfLine(const VisiblePosition& c, TextDirection dire
ction) | 1416 VisiblePosition rightBoundaryOfLine(const VisiblePosition& c, TextDirection dire
ction) |
| 1418 { | 1417 { |
| 1419 return direction == LTR ? logicalEndOfLine(c) : logicalStartOfLine(c); | 1418 return direction == LTR ? logicalEndOfLine(c) : logicalStartOfLine(c); |
| 1420 } | 1419 } |
| 1421 | 1420 |
| 1422 } | 1421 } |
| OLD | NEW |