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

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

Issue 27323002: make input type="search" RTL direction aware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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
Index: LayoutTests/fast/forms/resources/common.js
diff --git a/LayoutTests/fast/forms/resources/common.js b/LayoutTests/fast/forms/resources/common.js
index 82925fb46c4ba0984e8ddff67e00a2c99014f21b..8efb2ec43644d8781c6728f8fce435f4a879944a 100644
--- a/LayoutTests/fast/forms/resources/common.js
+++ b/LayoutTests/fast/forms/resources/common.js
@@ -102,6 +102,13 @@ function searchCancelButtonPosition(element) {
return pos;
}
+function searchCancelButtonPositionRTL(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);

Powered by Google App Engine
This is Rietveld 408576698