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

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

Issue 6542053: Merge 78168 - 2011-02-09 Ryosuke Niwa <rniwa@webkit.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
Index: Source/WebCore/editing/VisibleSelection.cpp
===================================================================
--- Source/WebCore/editing/VisibleSelection.cpp (revision 79263)
+++ Source/WebCore/editing/VisibleSelection.cpp (working copy)
@@ -173,6 +173,9 @@
s = s.parentAnchoredEquivalent();
e = e.parentAnchoredEquivalent();
}
+
+ if (s.isNull() || e.isNull())
+ return 0;
// VisibleSelections are supposed to always be valid. This constructor will ASSERT
// if a valid range could not be created, which is fine for this callsite.
« no previous file with comments | « LayoutTests/fast/forms/file-input-hit-test-expected.txt ('k') | Source/WebCore/rendering/RenderFileUploadControl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698