| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 } | 278 } |
| 279 | 279 |
| 280 FrameView* view = m_page->mainFrame()->view(); | 280 FrameView* view = m_page->mainFrame()->view(); |
| 281 if (!view) | 281 if (!view) |
| 282 return; | 282 return; |
| 283 | 283 |
| 284 FrameView* overlayView = overlayPage()->mainFrame()->view(); | 284 FrameView* overlayView = overlayPage()->mainFrame()->view(); |
| 285 IntSize viewportSize = enclosingIntRect(view->visibleContentRect()).size(); | 285 IntSize viewportSize = enclosingIntRect(view->visibleContentRect()).size(); |
| 286 IntSize frameViewFullSize = enclosingIntRect(view->visibleContentRect(true))
.size(); | 286 IntSize frameViewFullSize = enclosingIntRect(view->visibleContentRect(true))
.size(); |
| 287 IntSize size = m_size.isEmpty() ? frameViewFullSize : m_size; | 287 IntSize size = m_size.isEmpty() ? frameViewFullSize : m_size; |
| 288 overlayPage()->setPageScaleFactor(m_page->pageScaleFactor(), IntPoint()); |
| 289 size.scale(m_page->pageScaleFactor()); |
| 288 overlayView->resize(size); | 290 overlayView->resize(size); |
| 289 | 291 |
| 290 // Clear canvas and paint things. | 292 // Clear canvas and paint things. |
| 291 reset(viewportSize, m_size.isEmpty() ? IntSize() : frameViewFullSize); | 293 reset(viewportSize, m_size.isEmpty() ? IntSize() : frameViewFullSize); |
| 292 | 294 |
| 293 // Include scrollbars to avoid masking them by the gutter. | 295 // Include scrollbars to avoid masking them by the gutter. |
| 294 drawGutter(); | 296 drawGutter(); |
| 295 drawNodeHighlight(); | 297 drawNodeHighlight(); |
| 296 drawRectHighlight(); | 298 drawRectHighlight(); |
| 297 drawPausedInDebuggerMessage(); | 299 drawPausedInDebuggerMessage(); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 } | 512 } |
| 511 | 513 |
| 512 void InspectorOverlay::freePage() | 514 void InspectorOverlay::freePage() |
| 513 { | 515 { |
| 514 m_overlayPage.clear(); | 516 m_overlayPage.clear(); |
| 515 } | 517 } |
| 516 | 518 |
| 517 } // namespace WebCore | 519 } // namespace WebCore |
| 518 | 520 |
| 519 #endif // ENABLE(INSPECTOR) | 521 #endif // ENABLE(INSPECTOR) |
| OLD | NEW |