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

Unified Diff: Source/core/editing/htmlediting.cpp

Issue 309993002: Make isEditablePosition to work with Position objects other than PositionIsOffsetInAnchor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-06T06:24:03 Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/editing/execCommand/format-block-with-uneditable-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/htmlediting.cpp
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
index 6c7b309faf972a3ab3f1ef79fcc17fbb298bb8aa..cde332cc6ccddc1d6808bc4bdfab34fd7240ff19 100644
--- a/Source/core/editing/htmlediting.cpp
+++ b/Source/core/editing/htmlediting.cpp
@@ -154,7 +154,7 @@ Node* lowestEditableAncestor(Node* node)
bool isEditablePosition(const Position& p, EditableType editableType, EUpdateStyle updateStyle)
{
- Node* node = p.deprecatedNode();
+ Node* node = p.parentAnchoredEquivalent().anchorNode();
if (!node)
return false;
if (updateStyle == UpdateStyle)
« no previous file with comments | « LayoutTests/editing/execCommand/format-block-with-uneditable-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698