| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |