diff options
Diffstat (limited to 'WebCore/platform/win')
| -rw-r--r-- | WebCore/platform/win/PlatformMouseEventWin.cpp | 1 | ||||
| -rw-r--r-- | WebCore/platform/win/PopupMenuWin.cpp | 6 | ||||
| -rw-r--r-- | WebCore/platform/win/WebCoreTextRenderer.cpp | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/WebCore/platform/win/PlatformMouseEventWin.cpp b/WebCore/platform/win/PlatformMouseEventWin.cpp index e9c0e3e..dc4dd2f 100644 --- a/WebCore/platform/win/PlatformMouseEventWin.cpp +++ b/WebCore/platform/win/PlatformMouseEventWin.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include "PlatformMouseEvent.h" #include <wtf/Assertions.h> diff --git a/WebCore/platform/win/PopupMenuWin.cpp b/WebCore/platform/win/PopupMenuWin.cpp index 1d9eb71..7d8c8d5 100644 --- a/WebCore/platform/win/PopupMenuWin.cpp +++ b/WebCore/platform/win/PopupMenuWin.cpp @@ -617,11 +617,11 @@ void PopupMenu::paint(const IntRect& damageRect, HDC hdc) // Draw the background for this menu item if (itemStyle.isVisible()) - context.fillRect(itemRect, optionBackgroundColor); + context.fillRect(itemRect, optionBackgroundColor, DeviceColorSpace); if (client()->itemIsSeparator(index)) { IntRect separatorRect(itemRect.x() + separatorPadding, itemRect.y() + (itemRect.height() - separatorHeight) / 2, itemRect.width() - 2 * separatorPadding, separatorHeight); - context.fillRect(separatorRect, optionTextColor); + context.fillRect(separatorRect, optionTextColor, DeviceColorSpace); continue; } @@ -631,7 +631,7 @@ void PopupMenu::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); + context.setFillColor(optionTextColor, DeviceColorSpace); Font itemFont = client()->menuStyle().font(); if (client()->itemIsLabel(index)) { diff --git a/WebCore/platform/win/WebCoreTextRenderer.cpp b/WebCore/platform/win/WebCoreTextRenderer.cpp index affeb9d..f771e00 100644 --- a/WebCore/platform/win/WebCoreTextRenderer.cpp +++ b/WebCore/platform/win/WebCoreTextRenderer.cpp @@ -49,7 +49,7 @@ static void doDrawTextAtPoint(GraphicsContext& context, const String& text, cons { TextRun run(text.characters(), text.length()); - context.setFillColor(color); + context.setFillColor(color, DeviceColorSpace); if (isOneLeftToRightRun(run)) font.drawText(&context, run, point); else @@ -71,7 +71,7 @@ static void doDrawTextAtPoint(GraphicsContext& context, const String& text, cons IntPoint underlinePoint(point); underlinePoint.move(beforeWidth, 1); - context.setStrokeColor(color); + context.setStrokeColor(color, DeviceColorSpace); context.drawLineForText(underlinePoint, underlinedWidth, false); } } |
