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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2894093002: Don't access DisplayItemClient::VisualRect() for cached display items. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after
3280 ForAllNonThrottledFrameViews([](FrameView& frame_view) { 3280 ForAllNonThrottledFrameViews([](FrameView& frame_view) {
3281 frame_view.Lifecycle().AdvanceTo(DocumentLifecycle::kInPaint); 3281 frame_view.Lifecycle().AdvanceTo(DocumentLifecycle::kInPaint);
3282 }); 3282 });
3283 3283
3284 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 3284 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
3285 if (GetLayoutView()->Layer()->NeedsRepaint()) { 3285 if (GetLayoutView()->Layer()->NeedsRepaint()) {
3286 GraphicsContext graphics_context(*paint_controller_); 3286 GraphicsContext graphics_context(*paint_controller_);
3287 if (RuntimeEnabledFeatures::printBrowserEnabled()) 3287 if (RuntimeEnabledFeatures::printBrowserEnabled())
3288 graphics_context.SetPrinting(true); 3288 graphics_context.SetPrinting(true);
3289 Paint(graphics_context, CullRect(LayoutRect::InfiniteIntRect())); 3289 Paint(graphics_context, CullRect(LayoutRect::InfiniteIntRect()));
3290 paint_controller_->CommitNewDisplayItems(LayoutSize()); 3290 paint_controller_->CommitNewDisplayItems();
3291 } 3291 }
3292 } else { 3292 } else {
3293 // A null graphics layer can occur for painting of SVG images that are not 3293 // A null graphics layer can occur for painting of SVG images that are not
3294 // parented into the main frame tree, or when the FrameView is the main 3294 // parented into the main frame tree, or when the FrameView is the main
3295 // frame view of a page overlay. The page overlay is in the layer tree of 3295 // frame view of a page overlay. The page overlay is in the layer tree of
3296 // the host page and will be painted during painting of the host page. 3296 // the host page and will be painted during painting of the host page.
3297 if (GraphicsLayer* root_graphics_layer = 3297 if (GraphicsLayer* root_graphics_layer =
3298 view.Compositor()->RootGraphicsLayer()) { 3298 view.Compositor()->RootGraphicsLayer()) {
3299 PaintGraphicsLayerRecursively(root_graphics_layer); 3299 PaintGraphicsLayerRecursively(root_graphics_layer);
3300 } 3300 }
(...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after
5425 void FrameView::SetAnimationHost( 5425 void FrameView::SetAnimationHost(
5426 std::unique_ptr<CompositorAnimationHost> host) { 5426 std::unique_ptr<CompositorAnimationHost> host) {
5427 animation_host_ = std::move(host); 5427 animation_host_ = std::move(host);
5428 } 5428 }
5429 5429
5430 LayoutUnit FrameView::CaretWidth() const { 5430 LayoutUnit FrameView::CaretWidth() const {
5431 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); 5431 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1));
5432 } 5432 }
5433 5433
5434 } // namespace blink 5434 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698