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

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

Issue 948063002: Move rendering/RenderMeter to layout/LayoutMeter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutTheme.h ('k') | Source/core/layout/LayoutThemeMac.h » ('j') | 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 * 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 25 matching lines...) Expand all
36 #include "core/html/HTMLDataListOptionsCollection.h" 36 #include "core/html/HTMLDataListOptionsCollection.h"
37 #include "core/html/HTMLFormControlElement.h" 37 #include "core/html/HTMLFormControlElement.h"
38 #include "core/html/HTMLInputElement.h" 38 #include "core/html/HTMLInputElement.h"
39 #include "core/html/HTMLMeterElement.h" 39 #include "core/html/HTMLMeterElement.h"
40 #include "core/html/HTMLOptionElement.h" 40 #include "core/html/HTMLOptionElement.h"
41 #include "core/html/parser/HTMLParserIdioms.h" 41 #include "core/html/parser/HTMLParserIdioms.h"
42 #include "core/html/shadow/MediaControlElements.h" 42 #include "core/html/shadow/MediaControlElements.h"
43 #include "core/html/shadow/ShadowElementNames.h" 43 #include "core/html/shadow/ShadowElementNames.h"
44 #include "core/html/shadow/SpinButtonElement.h" 44 #include "core/html/shadow/SpinButtonElement.h"
45 #include "core/html/shadow/TextControlInnerElements.h" 45 #include "core/html/shadow/TextControlInnerElements.h"
46 #include "core/layout/LayoutMeter.h"
46 #include "core/layout/PaintInfo.h" 47 #include "core/layout/PaintInfo.h"
47 #include "core/layout/style/AuthorStyleInfo.h" 48 #include "core/layout/style/AuthorStyleInfo.h"
48 #include "core/layout/style/LayoutStyle.h" 49 #include "core/layout/style/LayoutStyle.h"
49 #include "core/page/FocusController.h" 50 #include "core/page/FocusController.h"
50 #include "core/page/Page.h" 51 #include "core/page/Page.h"
51 #include "core/rendering/RenderMeter.h"
52 #include "core/rendering/RenderView.h" 52 #include "core/rendering/RenderView.h"
53 #include "platform/FileMetadata.h" 53 #include "platform/FileMetadata.h"
54 #include "platform/FloatConversion.h" 54 #include "platform/FloatConversion.h"
55 #include "platform/RuntimeEnabledFeatures.h" 55 #include "platform/RuntimeEnabledFeatures.h"
56 #include "platform/fonts/FontSelector.h" 56 #include "platform/fonts/FontSelector.h"
57 #include "platform/graphics/GraphicsContextStateSaver.h" 57 #include "platform/graphics/GraphicsContextStateSaver.h"
58 #include "platform/text/PlatformLocale.h" 58 #include "platform/text/PlatformLocale.h"
59 #include "platform/text/StringTruncator.h" 59 #include "platform/text/StringTruncator.h"
60 #include "public/platform/Platform.h" 60 #include "public/platform/Platform.h"
61 #include "public/platform/WebFallbackThemeEngine.h" 61 #include "public/platform/WebFallbackThemeEngine.h"
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 778
779 void LayoutTheme::adjustInnerSpinButtonStyle(LayoutStyle&, Element*) const 779 void LayoutTheme::adjustInnerSpinButtonStyle(LayoutStyle&, Element*) const
780 { 780 {
781 } 781 }
782 #endif 782 #endif
783 783
784 void LayoutTheme::adjustMenuListStyle(LayoutStyle&, Element*) const 784 void LayoutTheme::adjustMenuListStyle(LayoutStyle&, Element*) const
785 { 785 {
786 } 786 }
787 787
788 IntSize LayoutTheme::meterSizeForBounds(const RenderMeter*, const IntRect& bound s) const 788 IntSize LayoutTheme::meterSizeForBounds(const LayoutMeter*, const IntRect& bound s) const
789 { 789 {
790 return bounds.size(); 790 return bounds.size();
791 } 791 }
792 792
793 bool LayoutTheme::supportsMeter(ControlPart) const 793 bool LayoutTheme::supportsMeter(ControlPart) const
794 { 794 {
795 return false; 795 return false;
796 } 796 }
797 797
798 bool LayoutTheme::paintMeter(LayoutObject*, const PaintInfo&, const IntRect&) 798 bool LayoutTheme::paintMeter(LayoutObject*, const PaintInfo&, const IntRect&)
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 1244
1245 // padding - not honored by WinIE, needs to be removed. 1245 // padding - not honored by WinIE, needs to be removed.
1246 style.resetPadding(); 1246 style.resetPadding();
1247 1247
1248 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 1248 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
1249 // for now, we will not honor it. 1249 // for now, we will not honor it.
1250 style.resetBorder(); 1250 style.resetBorder();
1251 } 1251 }
1252 1252
1253 } // namespace blink 1253 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTheme.h ('k') | Source/core/layout/LayoutThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698