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

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

Issue 927773002: Keep track of multiple layout roots (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add bug link Created 5 years, 9 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) 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 Color(0, 0x5F, 0, 0x3F), 1190 Color(0, 0x5F, 0, 0x3F),
1191 Color(0, 0xAF, 0, 0x3F), 1191 Color(0, 0xAF, 0, 0x3F),
1192 Color(0, 0xFF, 0, 0x3F), 1192 Color(0, 0xFF, 0, 0x3F),
1193 }; 1193 };
1194 1194
1195 LayoutRect inflatedRect(rect); 1195 LayoutRect inflatedRect(rect);
1196 inflatedRect.inflate(-1); 1196 inflatedRect.inflate(-1);
1197 m_overlay->drawOutline(context, inflatedRect, colors[colorSelector++ % WTF_A RRAY_LENGTH(colors)]); 1197 m_overlay->drawOutline(context, inflatedRect, colors[colorSelector++ % WTF_A RRAY_LENGTH(colors)]);
1198 } 1198 }
1199 1199
1200 void InspectorPageAgent::didLayout(LayoutObject*) 1200 void InspectorPageAgent::didLayout()
1201 { 1201 {
1202 if (!m_enabled) 1202 if (!m_enabled)
1203 return; 1203 return;
1204 m_overlay->update(); 1204 m_overlay->update();
1205 viewportChanged(); 1205 viewportChanged();
1206 } 1206 }
1207 1207
1208 void InspectorPageAgent::didScroll() 1208 void InspectorPageAgent::didScroll()
1209 { 1209 {
1210 if (m_enabled) 1210 if (m_enabled)
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 DEFINE_TRACE(InspectorPageAgent) 1496 DEFINE_TRACE(InspectorPageAgent)
1497 { 1497 {
1498 visitor->trace(m_page); 1498 visitor->trace(m_page);
1499 visitor->trace(m_injectedScriptManager); 1499 visitor->trace(m_injectedScriptManager);
1500 visitor->trace(m_inspectorResourceContentLoader); 1500 visitor->trace(m_inspectorResourceContentLoader);
1501 InspectorBaseAgent::trace(visitor); 1501 InspectorBaseAgent::trace(visitor);
1502 } 1502 }
1503 1503
1504 } // namespace blink 1504 } // namespace blink
1505 1505
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.h ('k') | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698