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