diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/platform/win/PopupMenuWin.cpp | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/platform/win/PopupMenuWin.cpp')
-rw-r--r-- | WebCore/platform/win/PopupMenuWin.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/WebCore/platform/win/PopupMenuWin.cpp b/WebCore/platform/win/PopupMenuWin.cpp index 64b8a59..59ea563 100644 --- a/WebCore/platform/win/PopupMenuWin.cpp +++ b/WebCore/platform/win/PopupMenuWin.cpp @@ -50,8 +50,6 @@ static const int defaultAnimationDuration = 200; // Maximum height of a popup window static const int maxPopupHeight = 320; -static const int popupWindowAlphaPercent = 95; - const int optionSpacingMiddle = 1; const int popupWindowBorderWidth = 1; @@ -99,7 +97,7 @@ void PopupMenu::show(const IntRect& r, FrameView* v, int index) if (!m_popup) { registerPopup(); - DWORD exStyle = WS_EX_LAYERED | WS_EX_LTRREADING; + DWORD exStyle = WS_EX_LTRREADING; // Even though we already know our size and location at this point, we pass (0,0,0,0) as our size/location here. // We need to wait until after the call to ::SetWindowLongPtr to set our size so that in our WM_SIZE handler we can get access to the PopupMenu object @@ -112,7 +110,6 @@ void PopupMenu::show(const IntRect& r, FrameView* v, int index) return; ::SetWindowLongPtr(m_popup, 0, (LONG_PTR)this); - ::SetLayeredWindowAttributes(m_popup, 0, (255 * popupWindowAlphaPercent) / 100, LWA_ALPHA); } if (!m_scrollbar) @@ -526,13 +523,12 @@ void PopupMenu::paint(const IntRect& damageRect, HDC hdc) itemFont = Font(d, itemFont.letterSpacing(), itemFont.wordSpacing()); itemFont.update(m_popupClient->fontSelector()); } - context.setFont(itemFont); // Draw the item text if (itemStyle.isVisible()) { int textX = max(0, client()->clientPaddingLeft() - client()->clientInsetLeft()); int textY = itemRect.y() + itemFont.ascent() + (itemRect.height() - itemFont.height()) / 2; - context.drawBidiText(textRun, IntPoint(textX, textY)); + context.drawBidiText(itemFont, textRun, IntPoint(textX, textY)); } } |