| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 m_start = other.m_start; | 126 m_start = other.m_start; |
| 127 m_end = other.m_end; | 127 m_end = other.m_end; |
| 128 m_affinity = other.m_affinity; | 128 m_affinity = other.m_affinity; |
| 129 m_changeObserver = nullptr; | 129 m_changeObserver = nullptr; |
| 130 m_selectionType = other.m_selectionType; | 130 m_selectionType = other.m_selectionType; |
| 131 m_baseIsFirst = other.m_baseIsFirst; | 131 m_baseIsFirst = other.m_baseIsFirst; |
| 132 m_isDirectional = other.m_isDirectional; | 132 m_isDirectional = other.m_isDirectional; |
| 133 return *this; | 133 return *this; |
| 134 } | 134 } |
| 135 | 135 |
| 136 #if !ENABLE(OILPAN) |
| 136 VisibleSelection::~VisibleSelection() | 137 VisibleSelection::~VisibleSelection() |
| 137 { | 138 { |
| 138 #if !ENABLE(OILPAN) | |
| 139 didChange(); | 139 didChange(); |
| 140 } |
| 140 #endif | 141 #endif |
| 141 } | |
| 142 | 142 |
| 143 VisibleSelection VisibleSelection::selectionFromContentsOfNode(Node* node) | 143 VisibleSelection VisibleSelection::selectionFromContentsOfNode(Node* node) |
| 144 { | 144 { |
| 145 ASSERT(!editingIgnoresContent(node)); | 145 ASSERT(!editingIgnoresContent(node)); |
| 146 return VisibleSelection(firstPositionInNode(node), lastPositionInNode(node),
DOWNSTREAM); | 146 return VisibleSelection(firstPositionInNode(node), lastPositionInNode(node),
DOWNSTREAM); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void VisibleSelection::setBase(const Position& position) | 149 void VisibleSelection::setBase(const Position& position) |
| 150 { | 150 { |
| 151 Position oldBase = m_base; | 151 Position oldBase = m_base; |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 sel.showTreeForThis(); | 935 sel.showTreeForThis(); |
| 936 } | 936 } |
| 937 | 937 |
| 938 void showTree(const blink::VisibleSelection* sel) | 938 void showTree(const blink::VisibleSelection* sel) |
| 939 { | 939 { |
| 940 if (sel) | 940 if (sel) |
| 941 sel->showTreeForThis(); | 941 sel->showTreeForThis(); |
| 942 } | 942 } |
| 943 | 943 |
| 944 #endif | 944 #endif |
| OLD | NEW |