Changeset 55897 in webkit
- Timestamp:
- Mar 12, 2010 7:10:54 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r55851 r55897 1 2010-03-12 Scott Byer <scottbyer@chromium.org> 2 3 Reviewed by David Levin. 4 5 Popup font size needs to be exposed to clients. 6 https://bugs.webkit.org/show_bug.cgi?id=35990 7 8 Add function to expose the popup menu font size, add a field to 9 WebPopupMenuInfo that receives that information to convey that to 10 the web view client's createPopupMenu() call. 11 12 * WebCore/platform/chromium/PopupMenuChromium.cpp: 13 * WebCore/platform/chromium/PopupMenuChromium.h: 14 * WebKit/chromium/public/WebPopupMenuInfo.h: 15 * WebKit/chromium/src/ChromeClientImpl.cpp: 16 1 17 2010-03-11 Adam Roben <aroben@apple.com> 2 18 -
trunk/WebCore/platform/chromium/PopupMenuChromium.cpp
r53716 r55897 510 510 { 511 511 return m_listBox->getRowHeight(0); 512 } 513 514 int PopupContainer::menuItemFontSize() const 515 { 516 return m_listBox->getRowFont(0).size(); 512 517 } 513 518 -
trunk/WebCore/platform/chromium/PopupMenuChromium.h
r48642 r55897 167 167 int menuItemHeight() const; 168 168 169 // The size of the font being used. 170 int menuItemFontSize() const; 171 169 172 private: 170 173 friend class WTF::RefCounted<PopupContainer>; -
trunk/WebKit/chromium/public/WebPopupMenuInfo.h
r51874 r55897 42 42 typedef WebMenuItemInfo Item; 43 43 int itemHeight; 44 int itemFontSize; 44 45 int selectedIndex; 45 46 WebVector<WebMenuItemInfo> items; -
trunk/WebKit/chromium/src/ChromeClientImpl.cpp
r55864 r55897 672 672 673 673 info->itemHeight = popupContainer->menuItemHeight(); 674 info->itemFontSize = popupContainer->menuItemFontSize(); 674 675 info->selectedIndex = popupContainer->selectedIndex(); 675 676 info->items.swap(outputItems);
Note: See TracChangeset
for help on using the changeset viewer.