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

Side by Side Diff: Source/WebCore/rendering/RenderMenuList.cpp

Issue 10442005: Merge 116476 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « Source/WebCore/rendering/RenderListBox.cpp ('k') | Source/WebCore/rendering/RenderScrollbar.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 select element renderer in WebCore. 2 * This file is part of the select element renderer in WebCore.
3 * 3 *
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
6 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 6 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 HostWindow* RenderMenuList::hostWindow() const 488 HostWindow* RenderMenuList::hostWindow() const
489 { 489 {
490 return document()->view()->hostWindow(); 490 return document()->view()->hostWindow();
491 } 491 }
492 492
493 PassRefPtr<Scrollbar> RenderMenuList::createScrollbar(ScrollableArea* scrollable Area, ScrollbarOrientation orientation, ScrollbarControlSize controlSize) 493 PassRefPtr<Scrollbar> RenderMenuList::createScrollbar(ScrollableArea* scrollable Area, ScrollbarOrientation orientation, ScrollbarControlSize controlSize)
494 { 494 {
495 RefPtr<Scrollbar> widget; 495 RefPtr<Scrollbar> widget;
496 bool hasCustomScrollbarStyle = style()->hasPseudoStyle(SCROLLBAR); 496 bool hasCustomScrollbarStyle = style()->hasPseudoStyle(SCROLLBAR);
497 if (hasCustomScrollbarStyle) 497 if (hasCustomScrollbarStyle)
498 widget = RenderScrollbar::createCustomScrollbar(scrollableArea, orientat ion, this); 498 widget = RenderScrollbar::createCustomScrollbar(scrollableArea, orientat ion, this->node());
499 else 499 else
500 widget = Scrollbar::createNativeScrollbar(scrollableArea, orientation, c ontrolSize); 500 widget = Scrollbar::createNativeScrollbar(scrollableArea, orientation, c ontrolSize);
501 return widget.release(); 501 return widget.release();
502 } 502 }
503 503
504 int RenderMenuList::clientInsetLeft() const 504 int RenderMenuList::clientInsetLeft() const
505 { 505 {
506 return 0; 506 return 0;
507 } 507 }
508 508
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 { 573 {
574 setTextFromOption(toHTMLSelectElement(node())->listToOptionIndex(listIndex)) ; 574 setTextFromOption(toHTMLSelectElement(node())->listToOptionIndex(listIndex)) ;
575 } 575 }
576 576
577 FontSelector* RenderMenuList::fontSelector() const 577 FontSelector* RenderMenuList::fontSelector() const
578 { 578 {
579 return document()->styleResolver()->fontSelector(); 579 return document()->styleResolver()->fontSelector();
580 } 580 }
581 581
582 } 582 }
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderListBox.cpp ('k') | Source/WebCore/rendering/RenderScrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698