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

Side by Side Diff: Source/core/dom/Position.h

Issue 1201403002: Make VisiblePosition constructor to canonicalize a position in composed tree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-25T17:29:10 Update use-events-crash.svg expectations Created 5 years, 6 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
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 template <typename Strategy> 447 template <typename Strategy>
448 typename Strategy::PositionType PositionAlgorithm<Strategy>::lastPositionInOrAft erNode(Node* node) 448 typename Strategy::PositionType PositionAlgorithm<Strategy>::lastPositionInOrAft erNode(Node* node)
449 { 449 {
450 if (!node) 450 if (!node)
451 return PositionType(); 451 return PositionType();
452 return Strategy::editingIgnoresContent(node) ? afterNode(node) : lastPositio nInNode(node); 452 return Strategy::editingIgnoresContent(node) ? afterNode(node) : lastPositio nInNode(node);
453 } 453 }
454 454
455 PositionInComposedTree toPositionInComposedTree(const Position&); 455 PositionInComposedTree toPositionInComposedTree(const Position&);
456 Position toPositionInDOMTree(const Position&);
456 Position toPositionInDOMTree(const PositionInComposedTree&); 457 Position toPositionInDOMTree(const PositionInComposedTree&);
457 458
458 } // namespace blink 459 } // namespace blink
459 460
460 #ifndef NDEBUG 461 #ifndef NDEBUG
461 // Outside the WebCore namespace for ease of invocation from gdb. 462 // Outside the WebCore namespace for ease of invocation from gdb.
462 void showTree(const blink::Position&); 463 void showTree(const blink::Position&);
463 void showTree(const blink::Position*); 464 void showTree(const blink::Position*);
464 #endif 465 #endif
465 466
466 #endif // Position_h 467 #endif // Position_h
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/svg/custom/use-events-crash-expected.txt ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698