| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the select element layoutObject in WebCore. | 2 * This file is part of the select element layoutObject 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 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual void willBeDestroyed() override; | 59 virtual void willBeDestroyed() override; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 HTMLSelectElement* selectElement() const; | 62 HTMLSelectElement* selectElement() const; |
| 63 | 63 |
| 64 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectMenuList || LayoutFlexibleBox::isOfType(type); } | 64 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectMenuList || LayoutFlexibleBox::isOfType(type); } |
| 65 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr
ide; | 65 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr
ide; |
| 66 | 66 |
| 67 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; | 67 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nu
llptr) override; |
| 68 virtual void removeChild(LayoutObject*) override; | 68 virtual void removeChild(LayoutObject*) override; |
| 69 virtual bool createsAnonymousWrapper() const override { return true; } | 69 virtual bool createsAnonymousWrapper() const override { return true; } |
| 70 | 70 |
| 71 virtual void updateFromElement() override; | 71 virtual void updateFromElement() override; |
| 72 | 72 |
| 73 virtual LayoutRect controlClipRect(const LayoutPoint&) const override; | 73 virtual LayoutRect controlClipRect(const LayoutPoint&) const override; |
| 74 virtual bool hasControlClip() const override { return true; } | 74 virtual bool hasControlClip() const override { return true; } |
| 75 | 75 |
| 76 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; | 76 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; |
| 77 | 77 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h | 144 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h |
| 145 friend class LayoutMenuListTest_ElementRectRelativeToViewport_Test; | 145 friend class LayoutMenuListTest_ElementRectRelativeToViewport_Test; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMenuList, isMenuList()); | 148 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMenuList, isMenuList()); |
| 149 | 149 |
| 150 } | 150 } |
| 151 | 151 |
| 152 #endif | 152 #endif |
| OLD | NEW |