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

Side by Side Diff: Source/web/InspectorOverlayImpl.cpp

Issue 1225583004: Revert of Add a FrameView lifecycle method that just updates layout, style and compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | « Source/core/testing/Internals.cpp ('k') | Source/web/WebAXObject.cpp » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 IntSize viewportSize = m_webViewImpl->page()->frameHost().pinchViewport().si ze(); 284 IntSize viewportSize = m_webViewImpl->page()->frameHost().pinchViewport().si ze();
285 toLocalFrame(overlayPage()->mainFrame())->view()->resize(viewportSize); 285 toLocalFrame(overlayPage()->mainFrame())->view()->resize(viewportSize);
286 reset(viewportSize, visibleRectInDocument.location()); 286 reset(viewportSize, visibleRectInDocument.location());
287 287
288 drawNodeHighlight(); 288 drawNodeHighlight();
289 drawQuadHighlight(); 289 drawQuadHighlight();
290 if (!m_inspectModeEnabled) 290 if (!m_inspectModeEnabled)
291 drawPausedInDebuggerMessage(); 291 drawPausedInDebuggerMessage();
292 drawViewSize(); 292 drawViewSize();
293 293
294 toLocalFrame(overlayPage()->mainFrame())->view()->updateAllLifecyclePhases() ; 294 toLocalFrame(overlayPage()->mainFrame())->view()->updateLayoutAndStyleForPai nting();
295 295
296 m_webViewImpl->addPageOverlay(this, OverlayZOrders::highlight); 296 m_webViewImpl->addPageOverlay(this, OverlayZOrders::highlight);
297 } 297 }
298 298
299 static PassRefPtr<JSONObject> buildObjectForSize(const IntSize& size) 299 static PassRefPtr<JSONObject> buildObjectForSize(const IntSize& size)
300 { 300 {
301 RefPtr<JSONObject> result = JSONObject::create(); 301 RefPtr<JSONObject> result = JSONObject::create();
302 result->setNumber("width", size.width()); 302 result->setNumber("width", size.width());
303 result->setNumber("height", size.height()); 303 result->setNumber("height", size.height());
304 return result.release(); 304 return result.release();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 } 487 }
488 488
489 void InspectorOverlayImpl::setLayoutEditor(PassOwnPtrWillBeRawPtr<LayoutEditor> layoutEditor) 489 void InspectorOverlayImpl::setLayoutEditor(PassOwnPtrWillBeRawPtr<LayoutEditor> layoutEditor)
490 { 490 {
491 m_layoutEditor = layoutEditor; 491 m_layoutEditor = layoutEditor;
492 m_overlayHost->setLayoutEditorListener(m_layoutEditor.get()); 492 m_overlayHost->setLayoutEditorListener(m_layoutEditor.get());
493 } 493 }
494 494
495 495
496 } // namespace blink 496 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698