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

Unified Diff: Source/web/WebScrollbarThemePainter.cpp

Issue 471503002: Cleanup namespace usage in Source/web/Web[I-Z]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebScriptController.cpp ('k') | Source/web/WebSecurityOrigin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebScrollbarThemePainter.cpp
diff --git a/Source/web/WebScrollbarThemePainter.cpp b/Source/web/WebScrollbarThemePainter.cpp
index d2f1fca61c7e47390203147fac5fa75da5a39408..5a2f4bb37e51686234e9c5802f1c81de39b5bcf9 100644
--- a/Source/web/WebScrollbarThemePainter.cpp
+++ b/Source/web/WebScrollbarThemePainter.cpp
@@ -32,8 +32,6 @@
#include "platform/scroll/ScrollbarTheme.h"
#include "public/platform/WebRect.h"
-using namespace blink;
-
namespace blink {
void WebScrollbarThemePainter::assign(const WebScrollbarThemePainter& painter)
@@ -64,42 +62,42 @@ void WebScrollbarThemePainter::paintBackTrackPart(WebCanvas* canvas, const WebRe
{
GraphicsContext context(canvas);
context.setCertainlyOpaque(false);
- m_theme->paintTrackPiece(&context, m_scrollbar, IntRect(rect), blink::BackTrackPart);
+ m_theme->paintTrackPiece(&context, m_scrollbar, IntRect(rect), BackTrackPart);
}
void WebScrollbarThemePainter::paintForwardTrackPart(WebCanvas* canvas, const WebRect& rect)
{
GraphicsContext context(canvas);
context.setCertainlyOpaque(false);
- m_theme->paintTrackPiece(&context, m_scrollbar, IntRect(rect), blink::ForwardTrackPart);
+ m_theme->paintTrackPiece(&context, m_scrollbar, IntRect(rect), ForwardTrackPart);
}
void WebScrollbarThemePainter::paintBackButtonStart(WebCanvas* canvas, const WebRect& rect)
{
GraphicsContext context(canvas);
context.setCertainlyOpaque(false);
- m_theme->paintButton(&context, m_scrollbar, IntRect(rect), blink::BackButtonStartPart);
+ m_theme->paintButton(&context, m_scrollbar, IntRect(rect), BackButtonStartPart);
}
void WebScrollbarThemePainter::paintBackButtonEnd(WebCanvas* canvas, const WebRect& rect)
{
GraphicsContext context(canvas);
context.setCertainlyOpaque(false);
- m_theme->paintButton(&context, m_scrollbar, IntRect(rect), blink::BackButtonEndPart);
+ m_theme->paintButton(&context, m_scrollbar, IntRect(rect), BackButtonEndPart);
}
void WebScrollbarThemePainter::paintForwardButtonStart(WebCanvas* canvas, const WebRect& rect)
{
GraphicsContext context(canvas);
context.setCertainlyOpaque(false);
- m_theme->paintButton(&context, m_scrollbar, IntRect(rect), blink::ForwardButtonStartPart);
+ m_theme->paintButton(&context, m_scrollbar, IntRect(rect), ForwardButtonStartPart);
}
void WebScrollbarThemePainter::paintForwardButtonEnd(WebCanvas* canvas, const WebRect& rect)
{
GraphicsContext context(canvas);
context.setCertainlyOpaque(false);
- m_theme->paintButton(&context, m_scrollbar, IntRect(rect), blink::ForwardButtonEndPart);
+ m_theme->paintButton(&context, m_scrollbar, IntRect(rect), ForwardButtonEndPart);
}
void WebScrollbarThemePainter::paintTickmarks(WebCanvas* canvas, const WebRect& rect)
@@ -116,7 +114,7 @@ void WebScrollbarThemePainter::paintThumb(WebCanvas* canvas, const WebRect& rect
m_theme->paintThumb(&context, m_scrollbar, IntRect(rect));
}
-WebScrollbarThemePainter::WebScrollbarThemePainter(blink::ScrollbarTheme* theme, blink::Scrollbar* scrollbar)
+WebScrollbarThemePainter::WebScrollbarThemePainter(ScrollbarTheme* theme, Scrollbar* scrollbar)
: m_theme(theme)
, m_scrollbar(scrollbar)
{
« no previous file with comments | « Source/web/WebScriptController.cpp ('k') | Source/web/WebSecurityOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698