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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2878573003: Initial skeleton of high-contrast mode. (Closed)
Patch Set: Don't pass settings to GraphicsLayer, address other feedback from chrishtr Created 3 years, 7 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/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index ebb192b3203d7f7e29c8d392cc48e36ffad12108..fa6db045b4413d6299c438accfe203afc6817d9b 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -315,7 +315,8 @@ bool GraphicsLayer::PaintWithoutCommit(
return false;
}
- GraphicsContext context(GetPaintController(), disabled_mode, nullptr);
+ GraphicsContext context(GetPaintController(), nullptr, disabled_mode,
+ nullptr);
previous_interest_rect_ = *interest_rect;
client_->PaintContents(this, context, painting_phase_, *interest_rect);
@@ -1185,7 +1186,7 @@ sk_sp<PaintRecord> GraphicsLayer::CaptureRecord() {
return nullptr;
FloatRect bounds(IntRect(IntPoint(0, 0), ExpandedIntSize(Size())));
- GraphicsContext graphics_context(GetPaintController(),
+ GraphicsContext graphics_context(GetPaintController(), nullptr,
GraphicsContext::kNothingDisabled, nullptr);
graphics_context.BeginRecording(bounds);
GetPaintController().GetPaintArtifact().Replay(bounds, graphics_context);

Powered by Google App Engine
This is Rietveld 408576698