| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 } else if (lastPositionToSelect.isNotNull()) { | 1377 } else if (lastPositionToSelect.isNotNull()) { |
| 1378 start = end = lastPositionToSelect; | 1378 start = end = lastPositionToSelect; |
| 1379 } else { | 1379 } else { |
| 1380 return; | 1380 return; |
| 1381 } | 1381 } |
| 1382 | 1382 |
| 1383 m_startOfInsertedRange = start; | 1383 m_startOfInsertedRange = start; |
| 1384 m_endOfInsertedRange = end; | 1384 m_endOfInsertedRange = end; |
| 1385 | 1385 |
| 1386 if (m_selectReplacement) | 1386 if (m_selectReplacement) |
| 1387 setEndingSelection(VisibleSelection(start, end, SEL_DEFAULT_AFFINITY, en
dingSelection().isDirectional())); | 1387 setEndingSelection(VisibleSelection(start, end, SelDefaultAffinity, endi
ngSelection().isDirectional())); |
| 1388 else | 1388 else |
| 1389 setEndingSelection(VisibleSelection(end, SEL_DEFAULT_AFFINITY, endingSel
ection().isDirectional())); | 1389 setEndingSelection(VisibleSelection(end, SelDefaultAffinity, endingSelec
tion().isDirectional())); |
| 1390 } | 1390 } |
| 1391 | 1391 |
| 1392 void ReplaceSelectionCommand::mergeTextNodesAroundPosition(Position& position, P
osition& positionOnlyToBeUpdated) | 1392 void ReplaceSelectionCommand::mergeTextNodesAroundPosition(Position& position, P
osition& positionOnlyToBeUpdated) |
| 1393 { | 1393 { |
| 1394 bool positionIsOffsetInAnchor = position.isOffsetInAnchor(); | 1394 bool positionIsOffsetInAnchor = position.isOffsetInAnchor(); |
| 1395 bool positionOnlyToBeUpdatedIsOffsetInAnchor = positionOnlyToBeUpdated.isOff
setInAnchor(); | 1395 bool positionOnlyToBeUpdatedIsOffsetInAnchor = positionOnlyToBeUpdated.isOff
setInAnchor(); |
| 1396 RefPtrWillBeRawPtr<Text> text = nullptr; | 1396 RefPtrWillBeRawPtr<Text> text = nullptr; |
| 1397 if (positionIsOffsetInAnchor && position.computeContainerNode() && position.
computeContainerNode()->isTextNode()) { | 1397 if (positionIsOffsetInAnchor && position.computeContainerNode() && position.
computeContainerNode()->isTextNode()) { |
| 1398 text = toText(position.computeContainerNode()); | 1398 text = toText(position.computeContainerNode()); |
| 1399 } else { | 1399 } else { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 visitor->trace(m_startOfInsertedContent); | 1560 visitor->trace(m_startOfInsertedContent); |
| 1561 visitor->trace(m_endOfInsertedContent); | 1561 visitor->trace(m_endOfInsertedContent); |
| 1562 visitor->trace(m_insertionStyle); | 1562 visitor->trace(m_insertionStyle); |
| 1563 visitor->trace(m_documentFragment); | 1563 visitor->trace(m_documentFragment); |
| 1564 visitor->trace(m_startOfInsertedRange); | 1564 visitor->trace(m_startOfInsertedRange); |
| 1565 visitor->trace(m_endOfInsertedRange); | 1565 visitor->trace(m_endOfInsertedRange); |
| 1566 CompositeEditCommand::trace(visitor); | 1566 CompositeEditCommand::trace(visitor); |
| 1567 } | 1567 } |
| 1568 | 1568 |
| 1569 } // namespace blink | 1569 } // namespace blink |
| OLD | NEW |