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

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

Issue 14079: Move skia_utils into the skia namespace. (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 | « webkit/port/platform/graphics/chromium/FontChromiumWin.cpp ('k') | 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // set. 579 // set.
580 if (o->style()->hasBorderRadius()) 580 if (o->style()->hasBorderRadius())
581 return false; 581 return false;
582 582
583 const ThemeData& themeData = getThemeData(o); 583 const ThemeData& themeData = getThemeData(o);
584 584
585 WebCore::ThemeHelperWin helper(i.context, r); 585 WebCore::ThemeHelperWin helper(i.context, r);
586 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); 586 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas();
587 587
588 HDC hdc = canvas->beginPlatformPaint(); 588 HDC hdc = canvas->beginPlatformPaint();
589 COLORREF clr = gfx::SkColorToCOLORREF(o->style()->backgroundColor().rgb()); 589 COLORREF clr = skia::SkColorToCOLORREF(o->style()->backgroundColor().rgb());
590 RECT renderRect = helper.rect(); 590 RECT renderRect = helper.rect();
591 591
592 gfx::NativeTheme::instance()->PaintTextField(hdc, 592 gfx::NativeTheme::instance()->PaintTextField(hdc,
593 themeData.m_part, 593 themeData.m_part,
594 themeData.m_state, 594 themeData.m_state,
595 themeData.m_classicState, 595 themeData.m_classicState,
596 &renderRect, 596 &renderRect,
597 clr, 597 clr,
598 true, 598 true,
599 drawEdges); 599 drawEdges);
(...skipping 22 matching lines...) Expand all
622 // static 622 // static
623 void RenderThemeWin::setFindInPageMode(bool enable) { 623 void RenderThemeWin::setFindInPageMode(bool enable) {
624 if (m_findInPageMode == enable) 624 if (m_findInPageMode == enable)
625 return; 625 return;
626 626
627 m_findInPageMode = enable; 627 m_findInPageMode = enable;
628 theme()->platformColorsDidChange(); 628 theme()->platformColorsDidChange();
629 } 629 }
630 630
631 } // namespace WebCore 631 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/port/platform/graphics/chromium/FontChromiumWin.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698