Chromium Code Reviews| 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; |