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

Unified Diff: third_party/WebKit/Source/web/resources/pickerCommon.js

Issue 2606853002: SELECT popup: Don't use non-100% zoom level in popup. (Closed)
Patch Set: . Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/web/resources/listPicker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/resources/pickerCommon.js
diff --git a/third_party/WebKit/Source/web/resources/pickerCommon.js b/third_party/WebKit/Source/web/resources/pickerCommon.js
index 1a2d2da85d4fececc77d58efed2a396116278252..a4f167346b31af0bbdf0115b5646409beb233f92 100644
--- a/third_party/WebKit/Source/web/resources/pickerCommon.js
+++ b/third_party/WebKit/Source/web/resources/pickerCommon.js
@@ -99,11 +99,11 @@ function resizeWindow(width, height) {
}
/**
- * @param {!number} width in physical pixel
- * @param {!number} height in physical pixel
- * @param {?number} minWidth in physical pixel
- * @param {?number} minHeight in physical pixel
- * @return {!Rectangle} Adjusted rectangle with physical pixels
+ * @param {!number} width in DIP
+ * @param {!number} height in DIP
+ * @param {?number} minWidth in DIP
+ * @param {?number} minHeight in DIP
+ * @return {!Rectangle} Adjusted rectangle in DIP
*/
function adjustWindowRect(width, height, minWidth, minHeight) {
if (typeof minWidth !== "number")
@@ -126,7 +126,7 @@ function adjustWindowRect(width, height, minWidth, minHeight) {
}
/**
- * Arguments are physical pixels.
+ * Arguments are DIPs.
*/
function _adjustWindowRectVertically(windowRect, availRect, anchorRect, minHeight) {
var availableSpaceAbove = anchorRect.y - availRect.y;
@@ -146,7 +146,7 @@ function _adjustWindowRectVertically(windowRect, availRect, anchorRect, minHeigh
}
/**
- * Arguments are physical pixels.
+ * Arguments are DIPs.
*/
function _adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWidth) {
windowRect.width = Math.min(windowRect.width, availRect.width);
@@ -160,7 +160,7 @@ function _adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWid
}
/**
- * @param {!Rectangle} rect Window position and size with physical pixels.
+ * @param {!Rectangle} rect Window position and size in DIP.
*/
function setWindowRect(rect) {
if (window.frameElement) {
« no previous file with comments | « third_party/WebKit/Source/web/resources/listPicker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698