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

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

Issue 2089993003: Get rid of EUpdateStyle parameter from isEditablePosition() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-27T14:42:23 Created 4 years, 5 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, 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 707
708 template <typename Strategy> 708 template <typename Strategy>
709 bool VisibleSelectionTemplate<Strategy>::isContentEditable() const 709 bool VisibleSelectionTemplate<Strategy>::isContentEditable() const
710 { 710 {
711 return isEditablePosition(start()); 711 return isEditablePosition(start());
712 } 712 }
713 713
714 template <typename Strategy> 714 template <typename Strategy>
715 bool VisibleSelectionTemplate<Strategy>::hasEditableStyle() const 715 bool VisibleSelectionTemplate<Strategy>::hasEditableStyle() const
716 { 716 {
717 return isEditablePosition(start(), ContentIsEditable, DoNotUpdateStyle); 717 return isEditablePosition(start(), ContentIsEditable);
718 } 718 }
719 719
720 template <typename Strategy> 720 template <typename Strategy>
721 bool VisibleSelectionTemplate<Strategy>::isContentRichlyEditable() const 721 bool VisibleSelectionTemplate<Strategy>::isContentRichlyEditable() const
722 { 722 {
723 return isRichlyEditablePosition(toPositionInDOMTree(start())); 723 return isRichlyEditablePosition(toPositionInDOMTree(start()));
724 } 724 }
725 725
726 template <typename Strategy> 726 template <typename Strategy>
727 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const 727 Element* VisibleSelectionTemplate<Strategy>::rootEditableElement() const
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 { 908 {
909 sel.showTreeForThis(); 909 sel.showTreeForThis();
910 } 910 }
911 911
912 void showTree(const blink::VisibleSelectionInFlatTree* sel) 912 void showTree(const blink::VisibleSelectionInFlatTree* sel)
913 { 913 {
914 if (sel) 914 if (sel)
915 sel->showTreeForThis(); 915 sel->showTreeForThis();
916 } 916 }
917 #endif 917 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698