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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 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
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
index 5375c92964eac3ebb00c727b560deb5a960905e4..6932c806f750fd004c5eef7bcb710bb22b1efa66 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
@@ -187,10 +187,10 @@ void ScrollbarThemeMac::paintTickmarks(GraphicsContext& context, const Scrollbar
if (!tickmarks.size())
return;
- if (DrawingRecorder::useCachedDrawingIfPossible(context, scrollbar, DisplayItem::ScrollbarTickmarks))
+ if (DrawingRecorder::useCachedDrawingIfPossible(context, scrollbar, DisplayItem::kScrollbarTickmarks))
return;
- DrawingRecorder recorder(context, scrollbar, DisplayItem::ScrollbarTickmarks, rect);
+ DrawingRecorder recorder(context, scrollbar, DisplayItem::kScrollbarTickmarks, rect);
// Inset a bit.
IntRect tickmarkTrackRect = rect;
@@ -292,10 +292,10 @@ ScrollbarPainter ScrollbarThemeMac::painterForScrollbar(const ScrollbarThemeClie
}
void ScrollbarThemeMac::paintTrackBackground(GraphicsContext& context, const Scrollbar& scrollbar, const IntRect& rect) {
- if (DrawingRecorder::useCachedDrawingIfPossible(context, scrollbar, DisplayItem::ScrollbarTrackBackground))
+ if (DrawingRecorder::useCachedDrawingIfPossible(context, scrollbar, DisplayItem::kScrollbarTrackBackground))
return;
- DrawingRecorder recorder(context, scrollbar, DisplayItem::ScrollbarTrackBackground, rect);
+ DrawingRecorder recorder(context, scrollbar, DisplayItem::kScrollbarTrackBackground, rect);
GraphicsContextStateSaver stateSaver(context);
context.translate(rect.x(), rect.y());
@@ -310,13 +310,13 @@ void ScrollbarThemeMac::paintTrackBackground(GraphicsContext& context, const Scr
}
void ScrollbarThemeMac::paintThumb(GraphicsContext& context, const Scrollbar& scrollbar, const IntRect& rect) {
- if (DrawingRecorder::useCachedDrawingIfPossible(context, scrollbar, DisplayItem::ScrollbarThumb))
+ if (DrawingRecorder::useCachedDrawingIfPossible(context, scrollbar, DisplayItem::kScrollbarThumb))
return;
// Expand dirty rect to allow for scroll thumb anti-aliasing in minimum thumb size case.
IntRect dirtyRect = IntRect(rect);
dirtyRect.inflate(1);
- DrawingRecorder recorder(context, scrollbar, DisplayItem::ScrollbarThumb, dirtyRect);
+ DrawingRecorder recorder(context, scrollbar, DisplayItem::kScrollbarThumb, dirtyRect);
GraphicsContextStateSaver stateSaver(context);
context.translate(rect.x(), rect.y());

Powered by Google App Engine
This is Rietveld 408576698