Let editing scroll hidden cursor into nearest edge instead of the center

When writing text inside a scroll container with fixed height, the
cursor eventually moves outside the visible area. At that point it's
scrolled back into view.

Before this patch it was moved as much as possible into the center of
the visible area, the problem with this was when writing text at the end
of a container with bottom padding. When the cursor was overflowing the
content area but still in the padding area, it was still into view, so
no scroll happened. But after leaving the padding area, the scrollbar
was scrolled to the bottom, moving the cursor into the content area.

This behavior seemed inconsistent, giving the impression that sometimes
it was trying to keep the cursor inside the content area and sometimes
not caring that the cursor was in the padding area.

After this patch, a hidden cursor is only scrolled into the nearest edge
of the visible area. This aligns Chromium with Firefox and Edge.

BUG=931838

TEST=editing/input/caret-at-the-edge-of-contenteditable.html
TEST=editing/input/caret-at-the-edge-of-input.html
TEST=editing/input/reveal-caret-of-multiline-contenteditable.html
TEST=editing/input/reveal-caret-of-multiline-input.html
TEST=editing/input/reveal-contenteditable-on-input-vertically.html
TEST=editing/input/reveal-edit-on-input-vertically.html
TEST=fast/forms/text/input-text-scroll-left-on-blur.html

Change-Id: I584e9c85d3eabd4ace1b694906cd6f7649c58443
Reviewed-on: https://chromium-review.googlesource.com/c/1477255
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#634393}
diff --git a/third_party/blink/renderer/core/editing/editor.cc b/third_party/blink/renderer/core/editing/editor.cc
index a2b01c8..103c496 100644
--- a/third_party/blink/renderer/core/editing/editor.cc
+++ b/third_party/blink/renderer/core/editing/editor.cc
@@ -506,7 +506,7 @@
       LocalFrame* focused_or_main_frame =
           ToLocalFrame(page->GetFocusController().FocusedOrMainFrame());
       focused_or_main_frame->Selection().RevealSelection(
-          ScrollAlignment::kAlignCenterIfNeeded);
+          ScrollAlignment::kAlignToEdgeIfNeeded);
     }
   }
 
@@ -519,13 +519,10 @@
 
   VisiblePosition caret =
       GetFrameSelection().ComputeVisibleSelectionInDOMTree().VisibleStart();
-  bool align_to_edge = IsEndOfEditableOrNonEditableContent(caret);
   DCHECK(GetFrame().GetDocument());
   if (!TypingCommand::InsertLineBreak(*GetFrame().GetDocument()))
     return false;
-  RevealSelectionAfterEditingOperation(
-      align_to_edge ? ScrollAlignment::kAlignToEdgeIfNeeded
-                    : ScrollAlignment::kAlignCenterIfNeeded);
+  RevealSelectionAfterEditingOperation(ScrollAlignment::kAlignToEdgeIfNeeded);
 
   return true;
 }
@@ -539,14 +536,11 @@
 
   VisiblePosition caret =
       GetFrameSelection().ComputeVisibleSelectionInDOMTree().VisibleStart();
-  bool align_to_edge = IsEndOfEditableOrNonEditableContent(caret);
   DCHECK(GetFrame().GetDocument());
   EditingState editing_state;
   if (!TypingCommand::InsertParagraphSeparator(*GetFrame().GetDocument()))
     return false;
-  RevealSelectionAfterEditingOperation(
-      align_to_edge ? ScrollAlignment::kAlignToEdgeIfNeeded
-                    : ScrollAlignment::kAlignCenterIfNeeded);
+  RevealSelectionAfterEditingOperation(ScrollAlignment::kAlignToEdgeIfNeeded);
 
   return true;
 }
diff --git a/third_party/blink/renderer/core/editing/editor.h b/third_party/blink/renderer/core/editing/editor.h
index 7780440..f3fde3c 100644
--- a/third_party/blink/renderer/core/editing/editor.h
+++ b/third_party/blink/renderer/core/editing/editor.h
@@ -226,7 +226,7 @@
   void Trace(blink::Visitor*);
 
   void RevealSelectionAfterEditingOperation(
-      const ScrollAlignment& = ScrollAlignment::kAlignCenterIfNeeded);
+      const ScrollAlignment& = ScrollAlignment::kAlignToEdgeIfNeeded);
 
  private:
   Member<LocalFrame> frame_;
diff --git a/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-contenteditable.html b/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-contenteditable.html
index a7f7ebf..83c425b 100644
--- a/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-contenteditable.html
+++ b/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-contenteditable.html
@@ -2,7 +2,7 @@
 <head>
 </head>
 <body>
-<div>When the caret reaches the edge of the input box or content editable div, on the next input if must jump to the center of the control.</div>
+<div>When the caret reaches the edge of the input box or content editable div, on the next input it must stay at the edge of the control.</div>
 <span style="position:absolute; visibility:hidden" id="single-digit">0</span>
 <div style="border:thin solid black; white-space:nowrap; overflow:hidden" contenteditable="true" id="input-contenteditable">012345678901234567890123456789</div>
 <script>
diff --git a/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-input.html b/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-input.html
index 0a5ef59c..ced7aef 100644
--- a/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-input.html
+++ b/third_party/blink/web_tests/editing/input/caret-at-the-edge-of-input.html
@@ -2,7 +2,7 @@
 <head>
 </head>
 <body>
-<div>When the caret reaches the edge of the input box, on the next input if must jump to the center of the control.</div>
+<div>When the caret reaches the edge of the input box, on the next input if must stay at the edge of the control.</div>
 <input type="text" name="input-edit" id="input-edit" size="10" value="012345678901234567890123456789" />
 <script>
 
diff --git a/third_party/blink/web_tests/editing/input/resources/reveal-utilities.js b/third_party/blink/web_tests/editing/input/resources/reveal-utilities.js
index 127853f..c4fd6e59 100644
--- a/third_party/blink/web_tests/editing/input/resources/reveal-utilities.js
+++ b/third_party/blink/web_tests/editing/input/resources/reveal-utilities.js
@@ -3,6 +3,12 @@
     return element.getClientRects()[0].top;
 }
 
+function offsetFromViewportBottom(element)
+{
+    var rect = element.getClientRects()[0];
+    return window.innerHeight - rect.top - rect.height;
+}
+
 function offsetOfMiddleFromViewportTop(element)
 {
     return element.getClientRects()[0].top + Math.round(element.getClientRects()[0].height / 2);
@@ -28,6 +34,15 @@
     return result;
 }
 
+function assertInputIsInTheBottomEdgeOfViewport()
+{
+    var offsetOfInput = offsetFromViewportBottom(document.getElementById("input"));
+    document.getElementById("results").innerHTML += "ScrollVertically: " +
+        (Math.abs(offsetOfInput) <= 3 ?
+         "PASS" :
+         "FAIL<br>offsetOfInput: " + offsetOfInput);
+}
+
 function assertInputIsInTheMiddleOfViewport()
 {
     var viewportMiddle = Math.round(window.innerHeight / 2);
diff --git a/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-contenteditable.html b/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-contenteditable.html
index 4e01426d..8686ca4 100644
--- a/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-contenteditable.html
+++ b/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-contenteditable.html
@@ -3,7 +3,7 @@
 <script type="text/javascript" src="resources/reveal-utilities.js"></script>
 </head>
 <body>
-<div>When the caret is scrolled out, on starting typing it must be brought to the center of the control.</div>
+<div>When the caret is scrolled out, on starting typing it must be brought to the edge of the control.</div>
 <span style="position:absolute; visibility:hidden" id="single-digit">0</span>
 <div style="border:thin solid black; overflow:scroll" contenteditable="true" id="input-contenteditable"></div>
 <script>
diff --git a/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-input.html b/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-input.html
index d5e5ba2..c74b424 100644
--- a/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-input.html
+++ b/third_party/blink/web_tests/editing/input/reveal-caret-of-multiline-input.html
@@ -3,7 +3,7 @@
 <script type="text/javascript" src="resources/reveal-utilities.js"></script>
 </head>
 <body>
-<div>When the caret is scrolled out, on starting typing it must be brought to the center of the control.</div>
+<div>When the caret is scrolled out, on starting typing it must be brought to the edge of the control.</div>
 <textarea name="textarea" id="textarea" rows="10" cols="10"></textarea>
 <script>
 
diff --git a/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically-expected.txt b/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically-expected.txt
index 35077988..9a80251 100644
--- a/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically-expected.txt
+++ b/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically-expected.txt
@@ -1,4 +1,4 @@
-After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view
-To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.
+After starting typing in a scrolled out of view editor control, the control is to be brought to the edge of the view
+To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the edge of the view.
 a
 ScrollVertically: PASS
diff --git a/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically.html b/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically.html
index fe0dd03..99b8874 100644
--- a/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically.html
+++ b/third_party/blink/web_tests/editing/input/reveal-contenteditable-on-input-vertically.html
@@ -8,9 +8,9 @@
 </style>
 </head>
 <body>
-<div>After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view</div>
+<div>After starting typing in a scrolled out of view editor control, the control is to be brought to the edge of the view</div>
 <div style="height:200%"></div>
-<div>To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.</div>
+<div>To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the edge of the view.</div>
 <div style="width:150px; border:thin solid black" contenteditable="true" id="input"></div>
 <div style="height:200%"></div>
 <div id="results"></div>
@@ -21,7 +21,7 @@
 if (window.internals)
     internals.settings.setScrollAnimatorEnabled(false);
 performVerticalScrollingInputTest();
-assertInputIsInTheMiddleOfViewport();
+assertInputIsInTheBottomEdgeOfViewport();
 
 </script>
 </body>
diff --git a/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically-expected.txt b/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically-expected.txt
index f388660b..f9da4337 100644
--- a/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically-expected.txt
+++ b/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically-expected.txt
@@ -1,3 +1,3 @@
-After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view
-To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.
+After starting typing in a scrolled out of view editor control, the control is to be brought to the edge of the view
+To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the edge of the view.
 ScrollVertically: PASS
diff --git a/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically.html b/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically.html
index f5c461d..a3d95013 100644
--- a/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically.html
+++ b/third_party/blink/web_tests/editing/input/reveal-edit-on-input-vertically.html
@@ -8,9 +8,9 @@
 </style>
 </head>
 <body>
-<div>After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view</div>
+<div>After starting typing in a scrolled out of view editor control, the control is to be brought to the edge of the view</div>
 <div style="height:200%"></div>
-<div>To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.</div>
+<div>To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the edge of the view.</div>
 <input type="text" name="input" id="input" />
 <div style="height:200%"></div>
 <div id="results"></div>
@@ -21,7 +21,7 @@
 if (window.internals)
     internals.settings.setScrollAnimatorEnabled(false);
 performVerticalScrollingInputTest();
-assertInputIsInTheMiddleOfViewport();
+assertInputIsInTheBottomEdgeOfViewport();
 
 </script>
 </body>
diff --git a/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-contenteditable-expected.png b/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-contenteditable-expected.png
index b89a131..f604dbf3 100644
--- a/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-contenteditable-expected.png
+++ b/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-contenteditable-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-input-expected.png b/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-input-expected.png
index 8b64592..089a034 100644
--- a/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-input-expected.png
+++ b/third_party/blink/web_tests/platform/linux/editing/input/caret-at-the-edge-of-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-contenteditable-expected.png b/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
index 61cea4a..051687a 100644
--- a/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
+++ b/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-input-expected.png b/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-input-expected.png
index 1a5194c..3b4a6d1c 100644
--- a/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-input-expected.png
+++ b/third_party/blink/web_tests/platform/linux/editing/input/reveal-caret-of-multiline-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/linux/fast/forms/text/input-text-scroll-left-on-blur-expected.png b/third_party/blink/web_tests/platform/linux/fast/forms/text/input-text-scroll-left-on-blur-expected.png
index 4c1770a..f09c4d3 100644
--- a/third_party/blink/web_tests/platform/linux/fast/forms/text/input-text-scroll-left-on-blur-expected.png
+++ b/third_party/blink/web_tests/platform/linux/fast/forms/text/input-text-scroll-left-on-blur-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/caret-at-the-edge-of-input-expected.png b/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/caret-at-the-edge-of-input-expected.png
index 933207e..ca0ddc9 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/caret-at-the-edge-of-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/caret-at-the-edge-of-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/reveal-caret-of-multiline-input-expected.png b/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/reveal-caret-of-multiline-input-expected.png
index 75aa2693..22d7c8b 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/reveal-caret-of-multiline-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.10/editing/input/reveal-caret-of-multiline-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.10/fast/forms/text/input-text-scroll-left-on-blur-expected.png b/third_party/blink/web_tests/platform/mac-mac10.10/fast/forms/text/input-text-scroll-left-on-blur-expected.png
index 8f81f6d..7420fa2 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.10/fast/forms/text/input-text-scroll-left-on-blur-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.10/fast/forms/text/input-text-scroll-left-on-blur-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/caret-at-the-edge-of-input-expected.png b/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/caret-at-the-edge-of-input-expected.png
index dabafa8e..3924808 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/caret-at-the-edge-of-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/caret-at-the-edge-of-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/reveal-caret-of-multiline-input-expected.png b/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/reveal-caret-of-multiline-input-expected.png
index 27d1a11..a7ea9fa2 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/reveal-caret-of-multiline-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.11/editing/input/reveal-caret-of-multiline-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.11/fast/forms/text/input-text-scroll-left-on-blur-expected.png b/third_party/blink/web_tests/platform/mac-mac10.11/fast/forms/text/input-text-scroll-left-on-blur-expected.png
index 55b9bf0f..f8b5a9bee 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.11/fast/forms/text/input-text-scroll-left-on-blur-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.11/fast/forms/text/input-text-scroll-left-on-blur-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac-mac10.12/editing/input/reveal-caret-of-multiline-input-expected.png b/third_party/blink/web_tests/platform/mac-mac10.12/editing/input/reveal-caret-of-multiline-input-expected.png
index 552271bd..7491a35 100644
--- a/third_party/blink/web_tests/platform/mac-mac10.12/editing/input/reveal-caret-of-multiline-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac-mac10.12/editing/input/reveal-caret-of-multiline-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-contenteditable-expected.png b/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-contenteditable-expected.png
index 7c95804..d7d31e9e 100644
--- a/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-contenteditable-expected.png
+++ b/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-contenteditable-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-input-expected.png b/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-input-expected.png
index 61b1dcd..8576c7f 100644
--- a/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac/editing/input/caret-at-the-edge-of-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-contenteditable-expected.png b/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
index 7130b82..e47cec0 100644
--- a/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
+++ b/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-input-expected.png b/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-input-expected.png
index da270d5..1c959ae 100644
--- a/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-input-expected.png
+++ b/third_party/blink/web_tests/platform/mac/editing/input/reveal-caret-of-multiline-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/mac/fast/forms/text/input-text-scroll-left-on-blur-expected.png b/third_party/blink/web_tests/platform/mac/fast/forms/text/input-text-scroll-left-on-blur-expected.png
index 498ebcb..c7449ab6 100644
--- a/third_party/blink/web_tests/platform/mac/fast/forms/text/input-text-scroll-left-on-blur-expected.png
+++ b/third_party/blink/web_tests/platform/mac/fast/forms/text/input-text-scroll-left-on-blur-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-contenteditable-expected.png b/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-contenteditable-expected.png
index a05ffc146..64e80a97 100644
--- a/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-contenteditable-expected.png
+++ b/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-contenteditable-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-input-expected.png b/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-input-expected.png
index 0cc638fa..de5405f 100644
--- a/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-input-expected.png
+++ b/third_party/blink/web_tests/platform/win/editing/input/caret-at-the-edge-of-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-contenteditable-expected.png b/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
index 7d1891c..8d261bd 100644
--- a/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
+++ b/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-contenteditable-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-input-expected.png b/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-input-expected.png
index aee6df7..2a86a15 100644
--- a/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-input-expected.png
+++ b/third_party/blink/web_tests/platform/win/editing/input/reveal-caret-of-multiline-input-expected.png
Binary files differ
diff --git a/third_party/blink/web_tests/platform/win/fast/forms/text/input-text-scroll-left-on-blur-expected.png b/third_party/blink/web_tests/platform/win/fast/forms/text/input-text-scroll-left-on-blur-expected.png
index 949e0fb..92461294 100644
--- a/third_party/blink/web_tests/platform/win/fast/forms/text/input-text-scroll-left-on-blur-expected.png
+++ b/third_party/blink/web_tests/platform/win/fast/forms/text/input-text-scroll-left-on-blur-expected.png
Binary files differ