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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarTheme.cpp

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 result.setWidth(forwardRect.maxX() - backRect.x()); 105 result.setWidth(forwardRect.maxX() - backRect.x());
106 } else { 106 } else {
107 result.setY(backRect.y()); 107 result.setY(backRect.y());
108 result.setHeight(forwardRect.maxY() - backRect.y()); 108 result.setHeight(forwardRect.maxY() - backRect.y());
109 } 109 }
110 return result; 110 return result;
111 } 111 }
112 112
113 void LayoutScrollbarTheme::paintScrollCorner(GraphicsContext& context, const Dis playItemClient& displayItemClient, const IntRect& cornerRect) 113 void LayoutScrollbarTheme::paintScrollCorner(GraphicsContext& context, const Dis playItemClient& displayItemClient, const IntRect& cornerRect)
114 { 114 {
115 if (DrawingRecorder::useCachedDrawingIfPossible(context, displayItemClient, DisplayItem::ScrollbarCorner)) 115 if (DrawingRecorder::useCachedDrawingIfPossible(context, displayItemClient, DisplayItem::kScrollbarCorner))
116 return; 116 return;
117 117
118 DrawingRecorder recorder(context, displayItemClient, DisplayItem::ScrollbarC orner, cornerRect); 118 DrawingRecorder recorder(context, displayItemClient, DisplayItem::kScrollbar Corner, cornerRect);
119 // FIXME: Implement. 119 // FIXME: Implement.
120 context.fillRect(cornerRect, Color::white); 120 context.fillRect(cornerRect, Color::white);
121 } 121 }
122 122
123 void LayoutScrollbarTheme::paintScrollbarBackground(GraphicsContext& context, co nst Scrollbar& scrollbar) 123 void LayoutScrollbarTheme::paintScrollbarBackground(GraphicsContext& context, co nst Scrollbar& scrollbar)
124 { 124 {
125 ScrollbarPainter(toLayoutScrollbar(scrollbar)).paintPart(context, ScrollbarB GPart, scrollbar.frameRect()); 125 ScrollbarPainter(toLayoutScrollbar(scrollbar)).paintPart(context, ScrollbarB GPart, scrollbar.frameRect());
126 } 126 }
127 127
128 void LayoutScrollbarTheme::paintTrackBackground(GraphicsContext& context, const Scrollbar& scrollbar, const IntRect& rect) 128 void LayoutScrollbarTheme::paintTrackBackground(GraphicsContext& context, const Scrollbar& scrollbar, const IntRect& rect)
(...skipping 15 matching lines...) Expand all
144 { 144 {
145 ScrollbarPainter(toLayoutScrollbar(scrollbar)).paintPart(context, ThumbPart, rect); 145 ScrollbarPainter(toLayoutScrollbar(scrollbar)).paintPart(context, ThumbPart, rect);
146 } 146 }
147 147
148 void LayoutScrollbarTheme::paintTickmarks(GraphicsContext& context, const Scroll bar& scrollbar, const IntRect& rect) 148 void LayoutScrollbarTheme::paintTickmarks(GraphicsContext& context, const Scroll bar& scrollbar, const IntRect& rect)
149 { 149 {
150 ScrollbarTheme::theme().paintTickmarks(context, scrollbar, rect); 150 ScrollbarTheme::theme().paintTickmarks(context, scrollbar, rect);
151 } 151 }
152 152
153 } // namespace blink 153 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698