| 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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 if (m_changeObserver) | 1085 if (m_changeObserver) |
| 1086 m_changeObserver->didChangeVisibleSelection(); | 1086 m_changeObserver->didChangeVisibleSelection(); |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 DEFINE_TRACE(VisibleSelection) | 1089 DEFINE_TRACE(VisibleSelection) |
| 1090 { | 1090 { |
| 1091 visitor->trace(m_base); | 1091 visitor->trace(m_base); |
| 1092 visitor->trace(m_extent); | 1092 visitor->trace(m_extent); |
| 1093 visitor->trace(m_start); | 1093 visitor->trace(m_start); |
| 1094 visitor->trace(m_end); | 1094 visitor->trace(m_end); |
| 1095 visitor->trace(m_baseInComposedTree); |
| 1096 visitor->trace(m_extentInComposedTree); |
| 1097 visitor->trace(m_startInComposedTree); |
| 1098 visitor->trace(m_endInComposedTree); |
| 1095 visitor->trace(m_changeObserver); | 1099 visitor->trace(m_changeObserver); |
| 1096 } | 1100 } |
| 1097 | 1101 |
| 1098 static bool isValidPosition(const Position& position) | 1102 static bool isValidPosition(const Position& position) |
| 1099 { | 1103 { |
| 1100 if (!position.inDocument()) | 1104 if (!position.inDocument()) |
| 1101 return false; | 1105 return false; |
| 1102 | 1106 |
| 1103 if (position.anchorType() != Position::PositionIsOffsetInAnchor) | 1107 if (position.anchorType() != Position::PositionIsOffsetInAnchor) |
| 1104 return true; | 1108 return true; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 sel.showTreeForThis(); | 1203 sel.showTreeForThis(); |
| 1200 } | 1204 } |
| 1201 | 1205 |
| 1202 void showTree(const blink::VisibleSelection* sel) | 1206 void showTree(const blink::VisibleSelection* sel) |
| 1203 { | 1207 { |
| 1204 if (sel) | 1208 if (sel) |
| 1205 sel->showTreeForThis(); | 1209 sel->showTreeForThis(); |
| 1206 } | 1210 } |
| 1207 | 1211 |
| 1208 #endif | 1212 #endif |
| OLD | NEW |