| 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());
|
|
|