Changeset 58259 in webkit


Ignore:
Timestamp:
Apr 26, 2010 9:56:42 AM (14 years ago)
Author:
evan@chromium.org
Message:

2010-04-26 Roman Gershman <romange@google.com>

Reviewed by Adam Barth.

[Chromium] Font size in suggestions popup menu should be correlated with the font size of its text field.

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

  • src/SuggestionsPopupMenuClient.cpp: (WebKit::SuggestionsPopupMenuClient::initialize):
Location:
trunk/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r58253 r58259  
     12010-04-26  Roman Gershman  <romange@google.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        [Chromium] Font size in suggestions popup menu should be correlated with the font size of its text field.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=37977
     8
     9        * src/SuggestionsPopupMenuClient.cpp:
     10        (WebKit::SuggestionsPopupMenuClient::initialize):
     11
    1122010-04-26  Pavel Feldman  <pfeldman@chromium.org>
    213
  • trunk/WebKit/chromium/src/SuggestionsPopupMenuClient.cpp

    r55031 r58259  
    157157    RenderTheme::defaultTheme()->systemFont(CSSValueWebkitControl,
    158158                                            fontDescription);
     159    RenderStyle* style = m_textField->computedStyle();
     160    fontDescription.setComputedSize(style->fontDescription().computedSize());
    159161
    160     // Use a smaller font size to match IE/Firefox.
    161     // FIXME: http://crbug.com/7376 use the system size instead of a
    162     //        fixed font size value.
    163     fontDescription.setComputedSize(12.0);
    164162    Font font(fontDescription, 0, 0);
    165163    font.update(textField->document()->styleSelector()->fontSelector());
Note: See TracChangeset for help on using the changeset viewer.