Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4583e4d authored by Adam Seaton's avatar Adam Seaton
Browse files

Revert "don't compute outside of visible range"

bug:141016653
This reverts commit 0a57fe09.

Reason for revert: CL is implicated in https://b.corp.google.com/issues/141016653

Change-Id: I39954226cb8971ee17e367692b3fd0e29871ad48
parent 0a57fe09
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -276,7 +276,6 @@ public class TextLine {
        final int runCount = mDirections.getRunCount();
        for (int runIndex = 0; runIndex < runCount; runIndex++) {
            final int runStart = mDirections.getRunStart(runIndex);
            if (runStart >= mLen) break;
            final int runLimit = Math.min(runStart + mDirections.getRunLength(runIndex), mLen);
            final boolean runIsRtl = mDirections.isRunRtl(runIndex);

@@ -361,7 +360,6 @@ public class TextLine {
        float h = 0;
        for (int runIndex = 0; runIndex < mDirections.getRunCount(); runIndex++) {
            final int runStart = mDirections.getRunStart(runIndex);
            if (runStart >= mLen) break;
            final int runLimit = Math.min(runStart + mDirections.getRunLength(runIndex), mLen);
            final boolean runIsRtl = mDirections.isRunRtl(runIndex);

@@ -419,7 +417,6 @@ public class TextLine {
        float h = 0;
        for (int runIndex = 0; runIndex < mDirections.getRunCount(); runIndex++) {
            final int runStart = mDirections.getRunStart(runIndex);
            if (runStart > mLen) break;
            final int runLimit = Math.min(runStart + mDirections.getRunLength(runIndex), mLen);
            final boolean runIsRtl = mDirections.isRunRtl(runIndex);