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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index e23523445ac0b163f50b90aa006eacb939dc761a..b87220317549301a2c971a87deec6e32280cda35 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -332,7 +332,7 @@ public:
// Fill the whole background by white.
{
- DrawingRecorder backgroundRecorder(context, pictureBuilder, DisplayItem::PrintedContentBackground, allPagesRect);
+ DrawingRecorder backgroundRecorder(context, pictureBuilder, DisplayItem::kPrintedContentBackground, allPagesRect);
context.fillRect(FloatRect(0, 0, pageWidth, totalHeight), Color::white);
}
@@ -341,7 +341,7 @@ public:
for (size_t pageIndex = 0; pageIndex < numPages; pageIndex++) {
// Draw a line for a page boundary if this isn't the first page.
if (pageIndex > 0) {
- DrawingRecorder lineBoundaryRecorder(context, pictureBuilder, DisplayItem::PrintedContentLineBoundary, allPagesRect);
+ DrawingRecorder lineBoundaryRecorder(context, pictureBuilder, DisplayItem::kPrintedContentLineBoundary, allPagesRect);
context.save();
context.setStrokeColor(Color(0, 0, 255));
context.setFillColor(Color(0, 0, 255));
@@ -385,12 +385,12 @@ protected:
transform.translate(static_cast<float>(-pageRect.x()), static_cast<float>(-pageRect.y()));
TransformRecorder transformRecorder(context, pictureBuilder, transform);
- ClipRecorder clipRecorder(context, pictureBuilder, DisplayItem::ClipPrintedPage, pageRect);
+ ClipRecorder clipRecorder(context, pictureBuilder, DisplayItem::kClipPrintedPage, pageRect);
frame()->view()->paintContents(context, GlobalPaintNormalPhase, pageRect);
{
- DrawingRecorder lineBoundaryRecorder(context, pictureBuilder, DisplayItem::PrintedContentDestinationLocations, pageRect);
+ DrawingRecorder lineBoundaryRecorder(context, pictureBuilder, DisplayItem::kPrintedContentDestinationLocations, pageRect);
outputLinkedDestinations(context, pageRect);
}
« no previous file with comments | « third_party/WebKit/Source/web/PageWidgetDelegate.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698