diff options
Diffstat (limited to 'WebCore/platform/win/PopupMenuWin.cpp')
-rw-r--r-- | WebCore/platform/win/PopupMenuWin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/platform/win/PopupMenuWin.cpp b/WebCore/platform/win/PopupMenuWin.cpp index a782b03..e86aef9 100644 --- a/WebCore/platform/win/PopupMenuWin.cpp +++ b/WebCore/platform/win/PopupMenuWin.cpp @@ -619,11 +619,11 @@ void PopupMenuWin::paint(const IntRect& damageRect, HDC hdc) // Draw the background for this menu item if (itemStyle.isVisible()) - context.fillRect(itemRect, optionBackgroundColor, DeviceColorSpace); + context.fillRect(itemRect, optionBackgroundColor, ColorSpaceDeviceRGB); if (client()->itemIsSeparator(index)) { IntRect separatorRect(itemRect.x() + separatorPadding, itemRect.y() + (itemRect.height() - separatorHeight) / 2, itemRect.width() - 2 * separatorPadding, separatorHeight); - context.fillRect(separatorRect, optionTextColor, DeviceColorSpace); + context.fillRect(separatorRect, optionTextColor, ColorSpaceDeviceRGB); continue; } @@ -633,7 +633,7 @@ void PopupMenuWin::paint(const IntRect& damageRect, HDC hdc) const UChar* string = itemText.characters(); TextRun textRun(string, length, false, 0, 0, itemText.defaultWritingDirection() == WTF::Unicode::RightToLeft); - context.setFillColor(optionTextColor, DeviceColorSpace); + context.setFillColor(optionTextColor, ColorSpaceDeviceRGB); Font itemFont = client()->menuStyle().font(); if (client()->itemIsLabel(index)) { |