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

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

Issue 1747763002: Remove OSX-specific <meter> rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 17 matching lines...) Expand all
28 #include "core/dom/shadow/ElementShadow.h" 28 #include "core/dom/shadow/ElementShadow.h"
29 #include "core/editing/FrameSelection.h" 29 #include "core/editing/FrameSelection.h"
30 #include "core/fileapi/FileList.h" 30 #include "core/fileapi/FileList.h"
31 #include "core/frame/LocalFrame.h" 31 #include "core/frame/LocalFrame.h"
32 #include "core/frame/Settings.h" 32 #include "core/frame/Settings.h"
33 #include "core/html/HTMLCollection.h" 33 #include "core/html/HTMLCollection.h"
34 #include "core/html/HTMLDataListElement.h" 34 #include "core/html/HTMLDataListElement.h"
35 #include "core/html/HTMLDataListOptionsCollection.h" 35 #include "core/html/HTMLDataListOptionsCollection.h"
36 #include "core/html/HTMLFormControlElement.h" 36 #include "core/html/HTMLFormControlElement.h"
37 #include "core/html/HTMLInputElement.h" 37 #include "core/html/HTMLInputElement.h"
38 #include "core/html/HTMLMeterElement.h"
39 #include "core/html/HTMLOptionElement.h" 38 #include "core/html/HTMLOptionElement.h"
40 #include "core/html/parser/HTMLParserIdioms.h" 39 #include "core/html/parser/HTMLParserIdioms.h"
41 #include "core/html/shadow/MediaControlElements.h" 40 #include "core/html/shadow/MediaControlElements.h"
42 #include "core/html/shadow/ShadowElementNames.h" 41 #include "core/html/shadow/ShadowElementNames.h"
43 #include "core/html/shadow/SpinButtonElement.h" 42 #include "core/html/shadow/SpinButtonElement.h"
44 #include "core/html/shadow/TextControlInnerElements.h" 43 #include "core/html/shadow/TextControlInnerElements.h"
45 #include "core/layout/LayoutThemeMobile.h" 44 #include "core/layout/LayoutThemeMobile.h"
46 #include "core/page/FocusController.h" 45 #include "core/page/FocusController.h"
47 #include "core/page/Page.h" 46 #include "core/page/Page.h"
48 #include "core/style/ComputedStyle.h" 47 #include "core/style/ComputedStyle.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 391 }
393 392
394 bool LayoutTheme::isControlStyled(const ComputedStyle& style) const 393 bool LayoutTheme::isControlStyled(const ComputedStyle& style) const
395 { 394 {
396 switch (style.appearance()) { 395 switch (style.appearance()) {
397 case PushButtonPart: 396 case PushButtonPart:
398 case SquareButtonPart: 397 case SquareButtonPart:
399 case ButtonPart: 398 case ButtonPart:
400 case ProgressBarPart: 399 case ProgressBarPart:
401 case MeterPart: 400 case MeterPart:
402 case RelevancyLevelIndicatorPart:
403 case ContinuousCapacityLevelIndicatorPart:
404 case DiscreteCapacityLevelIndicatorPart:
405 case RatingLevelIndicatorPart:
406 return style.hasAuthorBackground() || style.hasAuthorBorder(); 401 return style.hasAuthorBackground() || style.hasAuthorBorder();
407 402
408 case MenulistPart: 403 case MenulistPart:
409 case SearchFieldPart: 404 case SearchFieldPart:
410 case TextAreaPart: 405 case TextAreaPart:
411 case TextFieldPart: 406 case TextFieldPart:
412 return style.hasAuthorBackground() || style.hasAuthorBorder() || style.b oxShadow(); 407 return style.hasAuthorBackground() || style.hasAuthorBorder() || style.b oxShadow();
413 408
414 case SliderHorizontalPart: 409 case SliderHorizontalPart:
415 case SliderVerticalPart: 410 case SliderVerticalPart:
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 } 610 }
616 611
617 void LayoutTheme::adjustInnerSpinButtonStyle(ComputedStyle&) const 612 void LayoutTheme::adjustInnerSpinButtonStyle(ComputedStyle&) const
618 { 613 {
619 } 614 }
620 615
621 void LayoutTheme::adjustMenuListStyle(ComputedStyle&, Element*) const 616 void LayoutTheme::adjustMenuListStyle(ComputedStyle&, Element*) const
622 { 617 {
623 } 618 }
624 619
625 IntSize LayoutTheme::meterSizeForBounds(const LayoutMeter&, const IntRect& bound s) const
626 {
627 return bounds.size();
628 }
629
630 bool LayoutTheme::supportsMeter(ControlPart) const
631 {
632 return false;
633 }
634
635 double LayoutTheme::animationRepeatIntervalForProgressBar() const 620 double LayoutTheme::animationRepeatIntervalForProgressBar() const
636 { 621 {
637 return 0; 622 return 0;
638 } 623 }
639 624
640 double LayoutTheme::animationDurationForProgressBar() const 625 double LayoutTheme::animationDurationForProgressBar() const
641 { 626 {
642 return 0; 627 return 0;
643 } 628 }
644 629
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 927
943 // padding - not honored by WinIE, needs to be removed. 928 // padding - not honored by WinIE, needs to be removed.
944 style.resetPadding(); 929 style.resetPadding();
945 930
946 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 931 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
947 // for now, we will not honor it. 932 // for now, we will not honor it.
948 style.resetBorder(); 933 style.resetBorder();
949 } 934 }
950 935
951 } // namespace blink 936 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.h ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698