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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp

Issue 2878573003: Initial skeleton of high-contrast mode. (Closed)
Patch Set: Move to CompositedLayerMapping::DoPaintTask and add unit test Created 3 years, 6 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/paint/PaintRecordBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
index 1c4b126ded882a452513bffd5e38069efb05a5a5..5b392f20627b0cd52ea74ca3871fb4def717c81b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
@@ -37,8 +37,11 @@ PaintRecordBuilder::PaintRecordBuilder(const FloatRect& bounds,
paint_controller_->SetUsage(PaintController::kForPaintRecordBuilder);
#endif
- context_ = WTF::WrapUnique(
- new GraphicsContext(*paint_controller_, disabled_mode, meta_data));
+ const HighContrastSettings* high_contrast_settings =
+ containing_context ? &containing_context->high_contrast_settings()
+ : nullptr;
+ context_ = WTF::WrapUnique(new GraphicsContext(
+ *paint_controller_, high_contrast_settings, disabled_mode, meta_data));
if (containing_context) {
context_->SetDeviceScaleFactor(containing_context->DeviceScaleFactor());

Powered by Google App Engine
This is Rietveld 408576698