OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |