Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.h

Issue 2691913002: Introduce computePositionForNodeRemoval() as replacement of updatePositionForNodeRemoval() (Closed)
Patch Set: 2017-02-24T16:31:47 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 WhitespacePositionOption = NotConsiderNonCollapsibleWhitespace); 296 WhitespacePositionOption = NotConsiderNonCollapsibleWhitespace);
297 Position trailingWhitespacePosition( 297 Position trailingWhitespacePosition(
298 const Position&, 298 const Position&,
299 TextAffinity, 299 TextAffinity,
300 WhitespacePositionOption = NotConsiderNonCollapsibleWhitespace); 300 WhitespacePositionOption = NotConsiderNonCollapsibleWhitespace);
301 unsigned numEnclosingMailBlockquotes(const Position&); 301 unsigned numEnclosingMailBlockquotes(const Position&);
302 PositionWithAffinity positionRespectingEditingBoundary( 302 PositionWithAffinity positionRespectingEditingBoundary(
303 const Position&, 303 const Position&,
304 const LayoutPoint& localPoint, 304 const LayoutPoint& localPoint,
305 Node* targetNode); 305 Node* targetNode);
306 void updatePositionForNodeRemoval(Position&, Node&); 306 Position computePositionForNodeRemoval(const Position&, Node&);
307 307
308 // ------------------------------------------------------------------------- 308 // -------------------------------------------------------------------------
309 // VisiblePosition 309 // VisiblePosition
310 // ------------------------------------------------------------------------- 310 // -------------------------------------------------------------------------
311 311
312 // Functions returning VisiblePosition 312 // Functions returning VisiblePosition
313 313
314 // TODO(yosin) We should rename 314 // TODO(yosin) We should rename
315 // |firstEditableVisiblePositionAfterPositionInRoot()| to a better name which 315 // |firstEditableVisiblePositionAfterPositionInRoot()| to a better name which
316 // describes what this function returns, since it returns a position before 316 // describes what this function returns, since it returns a position before
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, 421 DispatchEventResult dispatchBeforeInputDataTransfer(Node*,
422 InputEvent::InputType, 422 InputEvent::InputType,
423 DataTransfer*); 423 DataTransfer*);
424 424
425 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, 425 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
426 TextGranularity); 426 TextGranularity);
427 427
428 } // namespace blink 428 } // namespace blink
429 429
430 #endif 430 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698