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

Side by Side Diff: Source/core/inspector/InspectorOverlay.cpp

Issue 933953003: Move the remaining rendering/svg/RenderSVG* files to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/frame/FrameView.cpp ('k') | Source/core/layout/Layer.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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 305
306 static void buildNodeHighlight(Node& node, const HighlightConfig& highlightConfi g, Highlight* highlight) 306 static void buildNodeHighlight(Node& node, const HighlightConfig& highlightConfi g, Highlight* highlight)
307 { 307 {
308 LayoutObject* renderer = node.renderer(); 308 LayoutObject* renderer = node.renderer();
309 if (!renderer) 309 if (!renderer)
310 return; 310 return;
311 311
312 highlight->setDataFromConfig(highlightConfig); 312 highlight->setDataFromConfig(highlightConfig);
313 313
314 // RenderSVGRoot should be highlighted through the isBox() code path, all ot her SVG elements should just dump their absoluteQuads(). 314 // LayoutSVGRoot should be highlighted through the isBox() code path, all ot her SVG elements should just dump their absoluteQuads().
315 if (renderer->node() && renderer->node()->isSVGElement() && !renderer->isSVG Root()) { 315 if (renderer->node() && renderer->node()->isSVGElement() && !renderer->isSVG Root()) {
316 Vector<FloatQuad> quads; 316 Vector<FloatQuad> quads;
317 renderer->absoluteQuads(quads); 317 renderer->absoluteQuads(quads);
318 FrameView* containingView = renderer->frameView(); 318 FrameView* containingView = renderer->frameView();
319 for (size_t i = 0; i < quads.size(); ++i) { 319 for (size_t i = 0; i < quads.size(); ++i) {
320 if (containingView) 320 if (containingView)
321 contentsQuadToScreen(containingView, quads[i]); 321 contentsQuadToScreen(containingView, quads[i]);
322 highlight->appendQuad(quads[i], highlightConfig.content, highlightCo nfig.contentOutline); 322 highlight->appendQuad(quads[i], highlightConfig.content, highlightCo nfig.contentOutline);
323 } 323 }
324 return; 324 return;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 hideHighlight(); 889 hideHighlight();
890 } 890 }
891 891
892 void InspectorOverlay::startedRecordingProfile() 892 void InspectorOverlay::startedRecordingProfile()
893 { 893 {
894 if (!m_activeProfilerCount++) 894 if (!m_activeProfilerCount++)
895 freePage(); 895 freePage();
896 } 896 }
897 897
898 } // namespace blink 898 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/Layer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698