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

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

Issue 471623003: WebLocalFrameImpl::printPage needs to ensure layout, style, and compositing are up-to-date (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 p->fillRect(rect, Color(0xFF, 0, 0)); 2548 p->fillRect(rect, Color(0xFF, 0, 0));
2549 #endif 2549 #endif
2550 2550
2551 RenderView* renderView = this->renderView(); 2551 RenderView* renderView = this->renderView();
2552 if (!renderView) { 2552 if (!renderView) {
2553 WTF_LOG_ERROR("called FrameView::paint with nil renderer"); 2553 WTF_LOG_ERROR("called FrameView::paint with nil renderer");
2554 return; 2554 return;
2555 } 2555 }
2556 2556
2557 RELEASE_ASSERT(!needsLayout()); 2557 RELEASE_ASSERT(!needsLayout());
2558 ASSERT(document->lifecycle().state() >= DocumentLifecycle::CompositingClean) ;
2558 2559
2559 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Paint", "data" , InspectorPaintEvent::data(renderView, rect, 0)); 2560 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Paint", "data" , InspectorPaintEvent::data(renderView, rect, 0));
2560 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), " CallStack", "stack", InspectorCallStackEvent::currentCallStack()); 2561 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), " CallStack", "stack", InspectorCallStackEvent::currentCallStack());
2561 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeli ne migrates to tracing. 2562 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeli ne migrates to tracing.
2562 InspectorInstrumentation::willPaint(renderView, 0); 2563 InspectorInstrumentation::willPaint(renderView, 0);
2563 2564
2564 bool isTopLevelPainter = !s_inPaintContents; 2565 bool isTopLevelPainter = !s_inPaintContents;
2565 s_inPaintContents = true; 2566 s_inPaintContents = true;
2566 2567
2567 FontCachePurgePreventer fontCachePurgePreventer; 2568 FontCachePurgePreventer fontCachePurgePreventer;
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
3131 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3132 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3132 { 3133 {
3133 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3134 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3134 if (AXObjectCache* cache = axObjectCache()) { 3135 if (AXObjectCache* cache = axObjectCache()) {
3135 cache->remove(scrollbar); 3136 cache->remove(scrollbar);
3136 cache->handleScrollbarUpdate(this); 3137 cache->handleScrollbarUpdate(this);
3137 } 3138 }
3138 } 3139 }
3139 3140
3140 } // namespace blink 3141 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698