Changeset 42597 in webkit


Ignore:
Timestamp:
Apr 16, 2009 3:29:30 PM (15 years ago)
Author:
darin@chromium.org
Message:

2009-04-16 Adam Langley <agl@google.com>

Reviewed by Darin Fisher.

Fix Chromium's rendering of <option> elements inside of <optgroups>.

https://bugs.webkit.org/show_bug.cgi?id=25244

Test (will included as a manual test by https://bugs.webkit.org/show_bug.cgi?id=24900):

<select>

<optgroup label="Should be bold">

<option>Should not be bold</option>

</optgroup>

</select>

  • css/themeWin.css: adding comments
  • platform/chromium/PopupMenuChromium.cpp: (WebCore::PopupListBox::getRowFont): use menuStyle() rather than the item's style
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r42593 r42597  
     12009-04-16  Adam Langley  <agl@google.com>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Fix Chromium's rendering of <option> elements inside of <optgroups>.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=25244
     8
     9        Test (will included as a manual test by https://bugs.webkit.org/show_bug.cgi?id=24900):
     10
     11        <select>
     12          <optgroup label="Should be bold">
     13            <option>Should not be bold</option>
     14          </optgroup>
     15        </select>
     16
     17        * css/themeWin.css: adding comments
     18        * platform/chromium/PopupMenuChromium.cpp:
     19        (WebCore::PopupListBox::getRowFont): use menuStyle() rather than the item's style
     20
    1212009-04-16  Eric Roman  <eroman@chromium.org>
    222
  • trunk/WebCore/css/themeWin.css

    r42020 r42597  
    9898    margin: 0;
    9999}
    100 /* Options always use the selects' fonts */
     100
     101/* Option font must be inherited because we depend on computing the size of the
     102   <select> based on the size of the options, and they must use the same font
     103   for that computation to be correct */
    101104option {
    102105    font: inherit !important;
  • trunk/WebCore/platform/chromium/PopupMenuChromium.cpp

    r42287 r42597  
    809809Font PopupListBox::getRowFont(int rowIndex)
    810810{
    811     Font itemFont = m_popupClient->itemStyle(rowIndex).font();
     811    Font itemFont = m_popupClient->menuStyle().font();
    812812    if (m_popupClient->itemIsLabel(rowIndex)) {
    813813        // Bold-ify labels (ie, an <optgroup> heading).
Note: See TracChangeset for help on using the changeset viewer.