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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp

Issue 2573003002: Fix SELECT element width with the mock theme. (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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * Copyright (C) 2009 Kenneth Rohde Christiansen 6 * Copyright (C) 2009 Kenneth Rohde Christiansen
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 int LayoutThemeDefault::popupInternalPaddingBottom( 333 int LayoutThemeDefault::popupInternalPaddingBottom(
334 const ComputedStyle& style) const { 334 const ComputedStyle& style) const {
335 return menuListInternalPadding(style, 1); 335 return menuListInternalPadding(style, 1);
336 } 336 }
337 337
338 // static 338 // static
339 int LayoutThemeDefault::scrollbarThicknessInDIP() { 339 int LayoutThemeDefault::scrollbarThicknessInDIP() {
340 int width = Platform::current() 340 int width = Platform::current()
341 ->themeEngine() 341 ->themeEngine()
342 ->getSize(WebThemeEngine::PartScrollbarDownArrow) 342 ->getSize(WebThemeEngine::PartScrollbarUpArrow)
343 .width; 343 .width;
344 return width > 0 ? width : 15; 344 return width > 0 ? width : 15;
345 } 345 }
346 346
347 // static 347 // static
348 float LayoutThemeDefault::clampedMenuListArrowPaddingSize( 348 float LayoutThemeDefault::clampedMenuListArrowPaddingSize(
349 const HostWindow* host, 349 const HostWindow* host,
350 const ComputedStyle& style) { 350 const ComputedStyle& style) {
351 int originalSize = scrollbarThicknessInDIP(); 351 int originalSize = scrollbarThicknessInDIP();
352 int scaledSize = 352 int scaledSize =
(...skipping 29 matching lines...) Expand all
382 double LayoutThemeDefault::animationRepeatIntervalForProgressBar() const { 382 double LayoutThemeDefault::animationRepeatIntervalForProgressBar() const {
383 return progressAnimationInterval; 383 return progressAnimationInterval;
384 } 384 }
385 385
386 double LayoutThemeDefault::animationDurationForProgressBar() const { 386 double LayoutThemeDefault::animationDurationForProgressBar() const {
387 return progressAnimationInterval * progressAnimationFrames * 387 return progressAnimationInterval * progressAnimationFrames *
388 2; // "2" for back and forth 388 2; // "2" for back and forth
389 } 389 }
390 390
391 } // namespace blink 391 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698