| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/dom/Range.h" | 32 #include "core/dom/Range.h" |
| 33 #include "core/editing/htmlediting.h" | 33 #include "core/editing/htmlediting.h" |
| 34 #include "core/editing/iterators/CharacterIterator.h" | 34 #include "core/editing/iterators/CharacterIterator.h" |
| 35 #include "core/layout/LayoutObject.h" | 35 #include "core/layout/LayoutObject.h" |
| 36 #include "platform/geometry/LayoutPoint.h" | 36 #include "platform/geometry/LayoutPoint.h" |
| 37 #include "wtf/Assertions.h" | 37 #include "wtf/Assertions.h" |
| 38 #include "wtf/text/CString.h" | 38 #include "wtf/text/CString.h" |
| 39 #include "wtf/text/StringBuilder.h" | 39 #include "wtf/text/StringBuilder.h" |
| 40 #include "wtf/unicode/CharacterNames.h" | 40 #include "wtf/unicode/CharacterNames.h" |
| 41 | 41 |
| 42 #ifndef NDEBUG | |
| 43 #include <stdio.h> | |
| 44 #endif | |
| 45 | |
| 46 namespace blink { | 42 namespace blink { |
| 47 | 43 |
| 48 VisibleSelection::VisibleSelection() | 44 VisibleSelection::VisibleSelection() |
| 49 : m_affinity(DOWNSTREAM) | 45 : m_affinity(DOWNSTREAM) |
| 50 , m_changeObserver(nullptr) | 46 , m_changeObserver(nullptr) |
| 51 , m_selectionType(NoSelection) | 47 , m_selectionType(NoSelection) |
| 52 , m_baseIsFirst(true) | 48 , m_baseIsFirst(true) |
| 53 , m_isDirectional(false) | 49 , m_isDirectional(false) |
| 54 { | 50 { |
| 55 } | 51 } |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 sel.showTreeForThis(); | 1243 sel.showTreeForThis(); |
| 1248 } | 1244 } |
| 1249 | 1245 |
| 1250 void showTree(const blink::VisibleSelection* sel) | 1246 void showTree(const blink::VisibleSelection* sel) |
| 1251 { | 1247 { |
| 1252 if (sel) | 1248 if (sel) |
| 1253 sel->showTreeForThis(); | 1249 sel->showTreeForThis(); |
| 1254 } | 1250 } |
| 1255 | 1251 |
| 1256 #endif | 1252 #endif |
| OLD | NEW |