Changeset 77716 in webkit


Ignore:
Timestamp:
Feb 4, 2011 6:19:43 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-04 Xiyuan Xia <xiyuan@chromium.org>

Reviewed by Tony Chang.

[Chromium] Option text in select popup does not align with menulist button text
https://bugs.webkit.org/show_bug.cgi?id=53632

This makes clientPaddingLeft and clientPaddingRight return
the additional m_innerBlock's padding so that the popup item text
aligns with the menulist button text.

  • rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::clientPaddingLeft): (WebCore::RenderMenuList::clientPaddingRight):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r77715 r77716  
     12011-02-04  Xiyuan Xia  <xiyuan@chromium.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        [Chromium] Option text in select popup does not align with menulist button text
     6        https://bugs.webkit.org/show_bug.cgi?id=53632
     7
     8        This makes clientPaddingLeft and  clientPaddingRight return
     9        the additional m_innerBlock's padding so that the popup item text
     10        aligns with the menulist button text.
     11
     12        * rendering/RenderMenuList.cpp:
     13        (WebCore::RenderMenuList::clientPaddingLeft):
     14        (WebCore::RenderMenuList::clientPaddingRight):
     15
    1162011-02-04  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderMenuList.cpp

    r76983 r77716  
    487487int RenderMenuList::clientPaddingLeft() const
    488488{
    489     return paddingLeft();
     489    return paddingLeft() + m_innerBlock->paddingLeft();
    490490}
    491491
     
    503503    // If the appearance isn't MenulistPart, then the select is styled (non-native), so
    504504    // we want to return the user specified padding.
    505     return paddingRight();
     505    return paddingRight() + m_innerBlock->paddingRight();
    506506}
    507507
Note: See TracChangeset for help on using the changeset viewer.