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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/resources/common.js

Issue 2219373002: input[type=search]: Flip the position of cancel button in RTL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/LayoutTests/fast/forms/resources/common.js
diff --git a/third_party/WebKit/LayoutTests/fast/forms/resources/common.js b/third_party/WebKit/LayoutTests/fast/forms/resources/common.js
index 21ad49dcf6ca6e3350cea726112810d1f4c82cab..41ea5443fb1c22cb3f41331ad9d44fa080c2807e 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/resources/common.js
+++ b/third_party/WebKit/LayoutTests/fast/forms/resources/common.js
@@ -102,6 +102,13 @@ function searchCancelButtonPosition(element) {
return pos;
}
+function rtlSearchCancelButtonPosition(element) {
+ var pos = {};
+ pos.x = element.offsetLeft + 9;
+ pos.y = element.offsetTop + element.offsetHeight / 2;
+ return pos;
+}
+
function mouseMoveToIndexInListbox(index, listboxId) {
var listbox = document.getElementById(listboxId);
var itemHeight = Math.floor(listbox.offsetHeight / listbox.size);
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/fast/forms/search/search-rtl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698