OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 15 matching lines...) Expand all Loading... |
26 #include "core/editing/VisibleSelection.h" | 26 #include "core/editing/VisibleSelection.h" |
27 | 27 |
28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
30 #include "core/dom/Element.h" | 30 #include "core/dom/Element.h" |
31 #include "core/dom/Range.h" | 31 #include "core/dom/Range.h" |
32 #include "core/editing/EditingUtilities.h" | 32 #include "core/editing/EditingUtilities.h" |
33 #include "core/editing/SelectionAdjuster.h" | 33 #include "core/editing/SelectionAdjuster.h" |
34 #include "core/editing/iterators/CharacterIterator.h" | 34 #include "core/editing/iterators/CharacterIterator.h" |
35 #include "platform/geometry/LayoutPoint.h" | 35 #include "platform/geometry/LayoutPoint.h" |
36 #include "wtf/Assertions.h" | 36 #include "platform/wtf/Assertions.h" |
37 #include "wtf/text/CString.h" | 37 #include "platform/wtf/text/CString.h" |
38 #include "wtf/text/CharacterNames.h" | 38 #include "platform/wtf/text/CharacterNames.h" |
39 #include "wtf/text/StringBuilder.h" | 39 #include "platform/wtf/text/StringBuilder.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 template <typename Strategy> | 43 template <typename Strategy> |
44 VisibleSelectionTemplate<Strategy>::VisibleSelectionTemplate() | 44 VisibleSelectionTemplate<Strategy>::VisibleSelectionTemplate() |
45 : affinity_(TextAffinity::kDownstream), | 45 : affinity_(TextAffinity::kDownstream), |
46 selection_type_(kNoSelection), | 46 selection_type_(kNoSelection), |
47 base_is_first_(true), | 47 base_is_first_(true), |
48 is_directional_(false), | 48 is_directional_(false), |
49 granularity_(kCharacterGranularity), | 49 granularity_(kCharacterGranularity), |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 | 772 |
773 void showTree(const blink::VisibleSelectionInFlatTree& sel) { | 773 void showTree(const blink::VisibleSelectionInFlatTree& sel) { |
774 sel.ShowTreeForThis(); | 774 sel.ShowTreeForThis(); |
775 } | 775 } |
776 | 776 |
777 void showTree(const blink::VisibleSelectionInFlatTree* sel) { | 777 void showTree(const blink::VisibleSelectionInFlatTree* sel) { |
778 if (sel) | 778 if (sel) |
779 sel->ShowTreeForThis(); | 779 sel->ShowTreeForThis(); |
780 } | 780 } |
781 #endif | 781 #endif |
OLD | NEW |