| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 3262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3273 ForAllNonThrottledLocalFrameViews([](LocalFrameView& frame_view) { | 3273 ForAllNonThrottledLocalFrameViews([](LocalFrameView& frame_view) { |
| 3274 frame_view.Lifecycle().AdvanceTo(DocumentLifecycle::kInPaint); | 3274 frame_view.Lifecycle().AdvanceTo(DocumentLifecycle::kInPaint); |
| 3275 }); | 3275 }); |
| 3276 | 3276 |
| 3277 if (RuntimeEnabledFeatures::SlimmingPaintV2Enabled()) { | 3277 if (RuntimeEnabledFeatures::SlimmingPaintV2Enabled()) { |
| 3278 if (GetLayoutView()->Layer()->NeedsRepaint()) { | 3278 if (GetLayoutView()->Layer()->NeedsRepaint()) { |
| 3279 paint_controller_->SetupRasterUnderInvalidationChecking(); | 3279 paint_controller_->SetupRasterUnderInvalidationChecking(); |
| 3280 GraphicsContext graphics_context(*paint_controller_); | 3280 GraphicsContext graphics_context(*paint_controller_); |
| 3281 if (RuntimeEnabledFeatures::PrintBrowserEnabled()) | 3281 if (RuntimeEnabledFeatures::PrintBrowserEnabled()) |
| 3282 graphics_context.SetPrinting(true); | 3282 graphics_context.SetPrinting(true); |
| 3283 |
| 3284 if (Settings* settings = frame_->GetSettings()) { |
| 3285 HighContrastSettings high_contrast_settings; |
| 3286 high_contrast_settings.mode = settings->GetHighContrastMode(); |
| 3287 high_contrast_settings.grayscale = settings->GetHighContrastGrayscale(); |
| 3288 high_contrast_settings.contrast = settings->GetHighContrastContrast(); |
| 3289 graphics_context.SetHighContrast(high_contrast_settings); |
| 3290 } |
| 3291 |
| 3283 Paint(graphics_context, CullRect(LayoutRect::InfiniteIntRect())); | 3292 Paint(graphics_context, CullRect(LayoutRect::InfiniteIntRect())); |
| 3284 paint_controller_->CommitNewDisplayItems(); | 3293 paint_controller_->CommitNewDisplayItems(); |
| 3285 } | 3294 } |
| 3286 } else { | 3295 } else { |
| 3287 // A null graphics layer can occur for painting of SVG images that are not | 3296 // A null graphics layer can occur for painting of SVG images that are not |
| 3288 // parented into the main frame tree, or when the LocalFrameView is the main | 3297 // parented into the main frame tree, or when the LocalFrameView is the main |
| 3289 // frame view of a page overlay. The page overlay is in the layer tree of | 3298 // frame view of a page overlay. The page overlay is in the layer tree of |
| 3290 // the host page and will be painted during painting of the host page. | 3299 // the host page and will be painted during painting of the host page. |
| 3291 if (GraphicsLayer* root_graphics_layer = | 3300 if (GraphicsLayer* root_graphics_layer = |
| 3292 view.Compositor()->RootGraphicsLayer()) { | 3301 view.Compositor()->RootGraphicsLayer()) { |
| (...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5411 void LocalFrameView::SetAnimationHost( | 5420 void LocalFrameView::SetAnimationHost( |
| 5412 std::unique_ptr<CompositorAnimationHost> host) { | 5421 std::unique_ptr<CompositorAnimationHost> host) { |
| 5413 animation_host_ = std::move(host); | 5422 animation_host_ = std::move(host); |
| 5414 } | 5423 } |
| 5415 | 5424 |
| 5416 LayoutUnit LocalFrameView::CaretWidth() const { | 5425 LayoutUnit LocalFrameView::CaretWidth() const { |
| 5417 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); | 5426 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); |
| 5418 } | 5427 } |
| 5419 | 5428 |
| 5420 } // namespace blink | 5429 } // namespace blink |
| OLD | NEW |