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

Side by Side Diff: Source/core/layout/LayoutThemeDefault.cpp

Issue 966883002: renderer/RenderMenuList.* -> layout/LayoutMenuList.* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove OWNERS, allowing Source/core/rendering to be deleted. Created 5 years, 9 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
« no previous file with comments | « Source/core/layout/LayoutMenuList.cpp ('k') | Source/core/layout/LayoutThemeMac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * Copyright (C) 2009 Kenneth Rohde Christiansen 6 * Copyright (C) 2009 Kenneth Rohde Christiansen
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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 } 786 }
787 787
788 int LayoutThemeDefault::menuListInternalPadding(const LayoutStyle& style, int pa ddingType) const 788 int LayoutThemeDefault::menuListInternalPadding(const LayoutStyle& style, int pa ddingType) const
789 { 789 {
790 // This internal padding is in addition to the user-supplied padding. 790 // This internal padding is in addition to the user-supplied padding.
791 // Matches the FF behavior. 791 // Matches the FF behavior.
792 int padding = styledMenuListInternalPadding[paddingType]; 792 int padding = styledMenuListInternalPadding[paddingType];
793 793
794 // Reserve the space for right arrow here. The rest of the padding is 794 // Reserve the space for right arrow here. The rest of the padding is
795 // set by adjustMenuListStyle, since PopMenuWin.cpp uses the padding from 795 // set by adjustMenuListStyle, since PopMenuWin.cpp uses the padding from
796 // RenderMenuList to lay out the individual items in the popup. 796 // LayoutMenuList to lay out the individual items in the popup.
797 // If the MenuList actually has appearance "NoAppearance", then that means 797 // If the MenuList actually has appearance "NoAppearance", then that means
798 // we don't draw a button, so don't reserve space for it. 798 // we don't draw a button, so don't reserve space for it.
799 const int barType = style.direction() == LTR ? RightPadding : LeftPadding; 799 const int barType = style.direction() == LTR ? RightPadding : LeftPadding;
800 if (paddingType == barType && style.appearance() != NoControlPart) 800 if (paddingType == barType && style.appearance() != NoControlPart)
801 padding += menuListArrowPadding(); 801 padding += menuListArrowPadding();
802 802
803 return padding; 803 return padding;
804 } 804 }
805 805
806 bool LayoutThemeDefault::shouldShowPlaceholderWhenFocused() const 806 bool LayoutThemeDefault::shouldShowPlaceholderWhenFocused() const
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 } 862 }
863 863
864 LayoutThemeDefault::DirectionFlippingScope::~DirectionFlippingScope() 864 LayoutThemeDefault::DirectionFlippingScope::~DirectionFlippingScope()
865 { 865 {
866 if (!m_needsFlipping) 866 if (!m_needsFlipping)
867 return; 867 return;
868 m_paintInfo.context->restore(); 868 m_paintInfo.context->restore();
869 } 869 }
870 870
871 } // namespace blink 871 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutMenuList.cpp ('k') | Source/core/layout/LayoutThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698