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

Side by Side Diff: third_party/WebKit/Source/core/editing/VisibleSelection.cpp

Issue 2023793002: Move VisibleSelection::nonBoundaryShadowTreeRootNode() to FrameSelection.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-30T17:24:37 Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | no next file » | 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, 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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 { 777 {
778 return isRichlyEditablePosition(toPositionInDOMTree(start())); 778 return isRichlyEditablePosition(toPositionInDOMTree(start()));
779 } 779 }
780 780
781 template <typename Strategy> 781 template <typename Strategy>
782 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const 782 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const
783 { 783 {
784 return rootEditableElementOf(start()); 784 return rootEditableElementOf(start());
785 } 785 }
786 786
787 template <typename Strategy>
788 Node* VisibleSelectionTemplate<Strategy>::nonBoundaryShadowTreeRootNode() const
789 {
790 return start().anchorNode() && !start().anchorNode()->isShadowRoot() ? start ().anchorNode()->nonBoundaryShadowTreeRootNode() : 0;
791 }
792
793 VisibleSelectionChangeObserver::VisibleSelectionChangeObserver() 787 VisibleSelectionChangeObserver::VisibleSelectionChangeObserver()
794 { 788 {
795 } 789 }
796 790
797 VisibleSelectionChangeObserver::~VisibleSelectionChangeObserver() 791 VisibleSelectionChangeObserver::~VisibleSelectionChangeObserver()
798 { 792 {
799 } 793 }
800 794
801 template <typename Strategy> 795 template <typename Strategy>
802 void VisibleSelectionTemplate<Strategy>::setChangeObserver(VisibleSelectionChang eObserver& observer) 796 void VisibleSelectionTemplate<Strategy>::setChangeObserver(VisibleSelectionChang eObserver& observer)
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 { 992 {
999 sel.showTreeForThis(); 993 sel.showTreeForThis();
1000 } 994 }
1001 995
1002 void showTree(const blink::VisibleSelectionInFlatTree* sel) 996 void showTree(const blink::VisibleSelectionInFlatTree* sel)
1003 { 997 {
1004 if (sel) 998 if (sel)
1005 sel->showTreeForThis(); 999 sel->showTreeForThis();
1006 } 1000 }
1007 #endif 1001 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698