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. | 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * (C) 2009 Torch Mobile Inc. All rights reserved. | 7 * (C) 2009 Torch Mobile Inc. All rights reserved. |
8 * (http://www.torchmobile.com/) | 8 * (http://www.torchmobile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 m_lastActiveIndex(-1) { | 48 m_lastActiveIndex(-1) { |
49 ASSERT(isHTMLSelectElement(element)); | 49 ASSERT(isHTMLSelectElement(element)); |
50 } | 50 } |
51 | 51 |
52 LayoutMenuList::~LayoutMenuList() {} | 52 LayoutMenuList::~LayoutMenuList() {} |
53 | 53 |
54 // FIXME: Instead of this hack we should add a ShadowRoot to <select> with no | 54 // FIXME: Instead of this hack we should add a ShadowRoot to <select> with no |
55 // insertion point to prevent children from rendering. | 55 // insertion point to prevent children from rendering. |
56 bool LayoutMenuList::isChildAllowed(LayoutObject* object, | 56 bool LayoutMenuList::isChildAllowed(LayoutObject* object, |
57 const ComputedStyle&) const { | 57 const ComputedStyle&) const { |
58 return object->isAnonymous() && !object->isLayoutFullScreen(); | 58 return object->isAnonymous(); |
59 } | 59 } |
60 | 60 |
61 void LayoutMenuList::createInnerBlock() { | 61 void LayoutMenuList::createInnerBlock() { |
62 if (m_innerBlock) { | 62 if (m_innerBlock) { |
63 ASSERT(firstChild() == m_innerBlock); | 63 ASSERT(firstChild() == m_innerBlock); |
64 ASSERT(!m_innerBlock->nextSibling()); | 64 ASSERT(!m_innerBlock->nextSibling()); |
65 return; | 65 return; |
66 } | 66 } |
67 | 67 |
68 // Create an anonymous block. | 68 // Create an anonymous block. |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 LayoutUnit LayoutMenuList::clientPaddingLeft() const { | 309 LayoutUnit LayoutMenuList::clientPaddingLeft() const { |
310 return paddingLeft() + m_innerBlock->paddingLeft(); | 310 return paddingLeft() + m_innerBlock->paddingLeft(); |
311 } | 311 } |
312 | 312 |
313 LayoutUnit LayoutMenuList::clientPaddingRight() const { | 313 LayoutUnit LayoutMenuList::clientPaddingRight() const { |
314 return paddingRight() + m_innerBlock->paddingRight(); | 314 return paddingRight() + m_innerBlock->paddingRight(); |
315 } | 315 } |
316 | 316 |
317 } // namespace blink | 317 } // namespace blink |
OLD | NEW |