OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |