Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: webkit/port/rendering/RenderThemeWin.cpp

Issue 13073: Fix color conversion. When I removed the dependency on skia_utils in this por... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // set. 564 // set.
565 if (o->style()->hasBorderRadius()) 565 if (o->style()->hasBorderRadius())
566 return false; 566 return false;
567 567
568 const ThemeData& themeData = getThemeData(o); 568 const ThemeData& themeData = getThemeData(o);
569 569
570 WebCore::ThemeHelperWin helper(i.context, r); 570 WebCore::ThemeHelperWin helper(i.context, r);
571 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); 571 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas();
572 572
573 HDC hdc = canvas->beginPlatformPaint(); 573 HDC hdc = canvas->beginPlatformPaint();
574 COLORREF clr = o->style()->backgroundColor().rgb(); 574 COLORREF clr = o->style()->backgroundColor().rgb() & 0xFFFFFF;
575 RECT renderRect = helper.rect(); 575 RECT renderRect = helper.rect();
576 576
577 gfx::NativeTheme::instance()->PaintTextField(hdc, 577 gfx::NativeTheme::instance()->PaintTextField(hdc,
578 themeData.m_part, 578 themeData.m_part,
579 themeData.m_state, 579 themeData.m_state,
580 themeData.m_classicState, 580 themeData.m_classicState,
581 &renderRect, 581 &renderRect,
582 clr, 582 clr,
583 true, 583 true,
584 drawEdges); 584 drawEdges);
(...skipping 22 matching lines...) Expand all
607 // static 607 // static
608 void RenderThemeWin::setFindInPageMode(bool enable) { 608 void RenderThemeWin::setFindInPageMode(bool enable) {
609 if (m_findInPageMode == enable) 609 if (m_findInPageMode == enable)
610 return; 610 return;
611 611
612 m_findInPageMode = enable; 612 m_findInPageMode = enable;
613 theme()->platformColorsDidChange(); 613 theme()->platformColorsDidChange();
614 } 614 }
615 615
616 } // namespace WebCore 616 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698