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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutMenuList.cpp

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698