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

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

Issue 2878573003: Initial skeleton of high-contrast mode. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/HighContrastSettings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27bbcc8304affead355e8ba0ce27f7e997302447..0022d60b00644a5af3058bc9010981b00463f90c 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp
@@ -37,8 +37,13 @@ PaintRecordBuilder::PaintRecordBuilder(const FloatRect& bounds,
paint_controller_->SetUsage(PaintController::kForPaintRecordBuilder);
#endif
+ const HighContrastSettings* high_contrast_settings =
+ containing_context ? &containing_context->high_contrast_settings()
+ : nullptr;
context_ = WTF::WrapUnique(
new GraphicsContext(*paint_controller_, disabled_mode, meta_data));
+ if (high_contrast_settings)
+ context_->SetHighContrast(*high_contrast_settings);
if (containing_context) {
context_->SetDeviceScaleFactor(containing_context->DeviceScaleFactor());
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/HighContrastSettings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698