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

Side by Side Diff: Source/core/rendering/RenderThemeChromiumSkia.cpp

Issue 14866009: Enable proper zooming of checkbox and radio button on Win and Mac. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
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 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 double RenderThemeChromiumSkia::caretBlinkIntervalInternal() const 399 double RenderThemeChromiumSkia::caretBlinkIntervalInternal() const
400 { 400 {
401 return RenderTheme::caretBlinkInterval(); 401 return RenderTheme::caretBlinkInterval();
402 } 402 }
403 403
404 int RenderThemeChromiumSkia::menuListArrowPadding() const 404 int RenderThemeChromiumSkia::menuListArrowPadding() const
405 { 405 {
406 return ScrollbarTheme::theme()->scrollbarThickness(); 406 return ScrollbarTheme::theme()->scrollbarThickness();
407 } 407 }
408 408
409 // static
410 void RenderThemeChromiumSkia::setSizeIfAuto(RenderStyle* style, const IntSize& s ize)
411 {
412 if (style->width().isIntrinsicOrAuto())
413 style->setWidth(Length(size.width(), Fixed));
414 if (style->height().isAuto())
415 style->setHeight(Length(size.height(), Fixed));
416 }
417
418 int RenderThemeChromiumSkia::menuListInternalPadding(RenderStyle* style, int pad dingType) const 409 int RenderThemeChromiumSkia::menuListInternalPadding(RenderStyle* style, int pad dingType) const
419 { 410 {
420 // This internal padding is in addition to the user-supplied padding. 411 // This internal padding is in addition to the user-supplied padding.
421 // Matches the FF behavior. 412 // Matches the FF behavior.
422 int padding = styledMenuListInternalPadding[paddingType]; 413 int padding = styledMenuListInternalPadding[paddingType];
423 414
424 // Reserve the space for right arrow here. The rest of the padding is 415 // Reserve the space for right arrow here. The rest of the padding is
425 // set by adjustMenuListStyle, since PopMenuWin.cpp uses the padding from 416 // set by adjustMenuListStyle, since PopMenuWin.cpp uses the padding from
426 // RenderMenuList to lay out the individual items in the popup. 417 // RenderMenuList to lay out the individual items in the popup.
427 // If the MenuList actually has appearance "NoAppearance", then that means 418 // If the MenuList actually has appearance "NoAppearance", then that means
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 } 484 }
494 485
495 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() 486 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope()
496 { 487 {
497 if (!m_needsFlipping) 488 if (!m_needsFlipping)
498 return; 489 return;
499 m_paintInfo.context->restore(); 490 m_paintInfo.context->restore();
500 } 491 }
501 492
502 } // namespace WebCore 493 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumSkia.h ('k') | Source/core/rendering/RenderThemeChromiumWin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698