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

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

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/rendering/RenderTheme.h ('k') | Source/core/scripts/make_names.pl » ('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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 return false; 717 return false;
718 718
719 return page->focusController()->isActive(); 719 return page->focusController()->isActive();
720 } 720 }
721 721
722 bool RenderTheme::isChecked(const RenderObject* o) const 722 bool RenderTheme::isChecked(const RenderObject* o) const
723 { 723 {
724 if (!o->node()) 724 if (!o->node())
725 return false; 725 return false;
726 726
727 HTMLInputElement* inputElement = o->node()->toInputElement(); 727 Handle<HTMLInputElement> inputElement = o->node()->toInputElement();
728 if (!inputElement) 728 if (!inputElement)
729 return false; 729 return false;
730 730
731 return inputElement->shouldAppearChecked(); 731 return inputElement->shouldAppearChecked();
732 } 732 }
733 733
734 bool RenderTheme::isIndeterminate(const RenderObject* o) const 734 bool RenderTheme::isIndeterminate(const RenderObject* o) const
735 { 735 {
736 if (!o->node()) 736 if (!o->node())
737 return false; 737 return false;
738 738
739 HTMLInputElement* inputElement = o->node()->toInputElement(); 739 Handle<HTMLInputElement> inputElement = o->node()->toInputElement();
740 if (!inputElement) 740 if (!inputElement)
741 return false; 741 return false;
742 742
743 return inputElement->shouldAppearIndeterminate(); 743 return inputElement->shouldAppearIndeterminate();
744 } 744 }
745 745
746 bool RenderTheme::isEnabled(const RenderObject* o) const 746 bool RenderTheme::isEnabled(const RenderObject* o) const
747 { 747 {
748 Node* node = o->node(); 748 Node* node = o->node();
749 if (!node || !node->isElementNode()) 749 if (!node || !node->isElementNode())
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 { 901 {
902 return 0; 902 return 0;
903 } 903 }
904 904
905 void RenderTheme::paintSliderTicks(RenderObject* o, const PaintInfo& paintInfo, const IntRect& rect) 905 void RenderTheme::paintSliderTicks(RenderObject* o, const PaintInfo& paintInfo, const IntRect& rect)
906 { 906 {
907 Node* node = o->node(); 907 Node* node = o->node();
908 if (!node) 908 if (!node)
909 return; 909 return;
910 910
911 HTMLInputElement* input = node->toInputElement(); 911 Handle<HTMLInputElement> input = node->toInputElement();
912 if (!input) 912 if (!input)
913 return; 913 return;
914 914
915 HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(input->lis t()); 915 HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(input->lis t());
916 if (!dataList) 916 if (!dataList)
917 return; 917 return;
918 918
919 double min = input->minimum(); 919 double min = input->minimum();
920 double max = input->maximum(); 920 double max = input->maximum();
921 ControlPart part = o->style()->appearance(); 921 ControlPart part = o->style()->appearance();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 992
993 double RenderTheme::animationDurationForProgressBar(RenderProgress*) const 993 double RenderTheme::animationDurationForProgressBar(RenderProgress*) const
994 { 994 {
995 return 0; 995 return 0;
996 } 996 }
997 997
998 void RenderTheme::adjustProgressBarStyle(StyleResolver*, RenderStyle*, Element*) const 998 void RenderTheme::adjustProgressBarStyle(StyleResolver*, RenderStyle*, Element*) const
999 { 999 {
1000 } 1000 }
1001 1001
1002 bool RenderTheme::shouldHaveSpinButton(HTMLInputElement* inputElement) const 1002 bool RenderTheme::shouldHaveSpinButton(Handle<HTMLInputElement> inputElement) co nst
1003 { 1003 {
1004 return inputElement->isSteppable() && !inputElement->isRangeControl(); 1004 return inputElement->isSteppable() && !inputElement->isRangeControl();
1005 } 1005 }
1006 1006
1007 void RenderTheme::adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Elemen t*) const 1007 void RenderTheme::adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Elemen t*) const
1008 { 1008 {
1009 } 1009 }
1010 1010
1011 void RenderTheme::adjustMediaControlStyle(StyleResolver*, RenderStyle*, Element* ) const 1011 void RenderTheme::adjustMediaControlStyle(StyleResolver*, RenderStyle*, Element* ) const
1012 { 1012 {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1196
1197 return StringTruncator::centerTruncate(string, width, font, StringTruncator: :EnableRoundingHacks); 1197 return StringTruncator::centerTruncate(string, width, font, StringTruncator: :EnableRoundingHacks);
1198 } 1198 }
1199 1199
1200 bool RenderTheme::shouldOpenPickerWithF4Key() const 1200 bool RenderTheme::shouldOpenPickerWithF4Key() const
1201 { 1201 {
1202 return false; 1202 return false;
1203 } 1203 }
1204 1204
1205 } // namespace WebCore 1205 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTheme.h ('k') | Source/core/scripts/make_names.pl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698