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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
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
11 * modify it under the terms of the GNU Library General Public 11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either 12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version. 13 * version 2 of the License, or (at your option) any later version.
14 * 14 *
15 * This library is distributed in the hope that it will be useful, 15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details. 18 * Library General Public License for more details.
19 * 19 *
20 * You should have received a copy of the GNU Library General Public License 20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to 21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 * 24 *
25 */ 25 */
26 26
27 #include "core/layout/LayoutMenuList.h" 27 #include "core/layout/LayoutMenuList.h"
28 28
29 #include <math.h>
29 #include "core/dom/AXObjectCache.h" 30 #include "core/dom/AXObjectCache.h"
30 #include "core/dom/NodeComputedStyle.h" 31 #include "core/dom/NodeComputedStyle.h"
31 #include "core/frame/FrameView.h" 32 #include "core/frame/FrameView.h"
32 #include "core/html/HTMLOptionElement.h" 33 #include "core/html/HTMLOptionElement.h"
33 #include "core/html/HTMLSelectElement.h" 34 #include "core/html/HTMLSelectElement.h"
34 #include "core/layout/LayoutText.h" 35 #include "core/layout/LayoutText.h"
35 #include "core/layout/LayoutTheme.h" 36 #include "core/layout/LayoutTheme.h"
36 #include "platform/text/PlatformLocale.h" 37 #include "platform/text/PlatformLocale.h"
37 #include <math.h>
38 38
39 namespace blink { 39 namespace blink {
40 40
41 LayoutMenuList::LayoutMenuList(Element* element) 41 LayoutMenuList::LayoutMenuList(Element* element)
42 : LayoutFlexibleBox(element), 42 : LayoutFlexibleBox(element),
43 m_buttonText(nullptr), 43 m_buttonText(nullptr),
44 m_innerBlock(nullptr), 44 m_innerBlock(nullptr),
45 m_isEmpty(false), 45 m_isEmpty(false),
46 m_hasUpdatedActiveOption(false), 46 m_hasUpdatedActiveOption(false),
47 m_innerBlockHeight(LayoutUnit()), 47 m_innerBlockHeight(LayoutUnit()),
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 LayoutUnit LayoutMenuList::clientPaddingLeft() const { 315 LayoutUnit LayoutMenuList::clientPaddingLeft() const {
316 return paddingLeft() + m_innerBlock->paddingLeft(); 316 return paddingLeft() + m_innerBlock->paddingLeft();
317 } 317 }
318 318
319 LayoutUnit LayoutMenuList::clientPaddingRight() const { 319 LayoutUnit LayoutMenuList::clientPaddingRight() const {
320 return paddingRight() + m_innerBlock->paddingRight(); 320 return paddingRight() + m_innerBlock->paddingRight();
321 } 321 }
322 322
323 } // namespace blink 323 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.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