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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 /** 1 /**
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 616
617 bool LayoutTheme::shouldHaveSpinButton(HTMLInputElement* inputElement) const { 617 bool LayoutTheme::shouldHaveSpinButton(HTMLInputElement* inputElement) const {
618 return inputElement->isSteppable() && 618 return inputElement->isSteppable() &&
619 inputElement->type() != InputTypeNames::range; 619 inputElement->type() != InputTypeNames::range;
620 } 620 }
621 621
622 void LayoutTheme::adjustMenuListButtonStyle(ComputedStyle&, Element*) const {} 622 void LayoutTheme::adjustMenuListButtonStyle(ComputedStyle&, Element*) const {}
623 623
624 void LayoutTheme::adjustSliderContainerStyle(ComputedStyle& style, 624 void LayoutTheme::adjustSliderContainerStyle(ComputedStyle& style,
625 Element* e) const { 625 Element* e) const {
626 if (e && (e->shadowPseudoId() == "-webkit-media-slider-container" || 626 if (e &&
627 e->shadowPseudoId() == "-webkit-slider-container")) { 627 (e->shadowPseudoId() == "-webkit-media-slider-container" ||
628 e->shadowPseudoId() == "-webkit-slider-container")) {
628 if (style.appearance() == SliderVerticalPart) { 629 if (style.appearance() == SliderVerticalPart) {
629 style.setTouchAction(TouchActionPanX); 630 style.setTouchAction(TouchActionPanX);
630 style.setAppearance(NoControlPart); 631 style.setAppearance(NoControlPart);
631 } else { 632 } else {
632 style.setTouchAction(TouchActionPanY); 633 style.setTouchAction(TouchActionPanY);
633 style.setAppearance(NoControlPart); 634 style.setAppearance(NoControlPart);
634 } 635 }
635 } 636 }
636 } 637 }
637 638
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 // padding - not honored by WinIE, needs to be removed. 913 // padding - not honored by WinIE, needs to be removed.
913 style.resetPadding(); 914 style.resetPadding();
914 915
915 // border - honored by WinIE, but looks terrible (just paints in the control 916 // border - honored by WinIE, but looks terrible (just paints in the control
916 // box and turns off the Windows XP theme) 917 // box and turns off the Windows XP theme)
917 // for now, we will not honor it. 918 // for now, we will not honor it.
918 style.resetBorder(); 919 style.resetBorder();
919 } 920 }
920 921
921 } // namespace blink 922 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextTest.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698