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

Unified Diff: Source/core/platform/text/BidiRunList.h

Issue 25373008: BidiResolver should not try to reverse runs when the run count is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missed layout test Created 7 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 | « Source/core/platform/text/BidiResolver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/text/BidiRunList.h
diff --git a/Source/core/platform/text/BidiRunList.h b/Source/core/platform/text/BidiRunList.h
index e4d701e05271a744b64c08dac48305832b6e658a..f6dccb7c16d66a9d9d625369effaae6f124e62f1 100644
--- a/Source/core/platform/text/BidiRunList.h
+++ b/Source/core/platform/text/BidiRunList.h
@@ -201,6 +201,9 @@ void BidiRunList<Run>::deleteRuns()
template <class Run>
void BidiRunList<Run>::reverseRuns(unsigned start, unsigned end)
{
+ if (!m_runCount)
+ return;
+
if (start >= end)
return;
« no previous file with comments | « Source/core/platform/text/BidiResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698