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

Unified Diff: Source/WebCore/editing/VisiblePosition.cpp

Issue 8199007: Merge 96868 - Crash in VisiblePosition::canonicalPosition. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 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/selection/selection-plugin-clear-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/WebCore/editing/VisiblePosition.cpp
===================================================================
--- Source/WebCore/editing/VisiblePosition.cpp (revision 96946)
+++ Source/WebCore/editing/VisiblePosition.cpp (working copy)
@@ -484,11 +484,11 @@
if (position.isNull())
return Position();
- Node* node = position.containerNode();
-
ASSERT(position.document());
position.document()->updateLayoutIgnorePendingStylesheets();
+ Node* node = position.containerNode();
+
Position candidate = position.upstream();
if (candidate.isCandidate())
return candidate;
« no previous file with comments | « LayoutTests/editing/selection/selection-plugin-clear-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698