| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 3189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3200 if (flatteningPaint && isRootFrame) | 3200 if (flatteningPaint && isRootFrame) |
| 3201 notifyWidgetsInAllFrames(WillPaintFlattened); | 3201 notifyWidgetsInAllFrames(WillPaintFlattened); |
| 3202 | 3202 |
| 3203 ASSERT(!m_isPainting); | 3203 ASSERT(!m_isPainting); |
| 3204 m_isPainting = true; | 3204 m_isPainting = true; |
| 3205 | 3205 |
| 3206 // m_nodeToDraw is used to draw only one element (and its descendants) | 3206 // m_nodeToDraw is used to draw only one element (and its descendants) |
| 3207 RenderObject* eltRenderer = m_nodeToDraw ? m_nodeToDraw->renderer() : 0; | 3207 RenderObject* eltRenderer = m_nodeToDraw ? m_nodeToDraw->renderer() : 0; |
| 3208 RenderLayer* rootLayer = root->layer(); | 3208 RenderLayer* rootLayer = root->layer(); |
| 3209 | 3209 |
| 3210 #ifndef NDEBUG |
| 3211 RenderObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(rootLayer->
renderer()); |
| 3212 #endif |
| 3213 |
| 3210 rootLayer->paint(p, rect, m_paintBehavior, eltRenderer); | 3214 rootLayer->paint(p, rect, m_paintBehavior, eltRenderer); |
| 3211 | 3215 |
| 3212 if (rootLayer->containsDirtyOverlayScrollbars()) | 3216 if (rootLayer->containsDirtyOverlayScrollbars()) |
| 3213 rootLayer->paintOverlayScrollbars(p, rect, m_paintBehavior, eltRenderer)
; | 3217 rootLayer->paintOverlayScrollbars(p, rect, m_paintBehavior, eltRenderer)
; |
| 3214 | 3218 |
| 3215 m_isPainting = false; | 3219 m_isPainting = false; |
| 3216 | 3220 |
| 3217 if (flatteningPaint && isRootFrame) | 3221 if (flatteningPaint && isRootFrame) |
| 3218 notifyWidgetsInAllFrames(DidPaintFlattened); | 3222 notifyWidgetsInAllFrames(DidPaintFlattened); |
| 3219 | 3223 |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3709 { | 3713 { |
| 3710 #if USE(ACCELERATED_COMPOSITING) | 3714 #if USE(ACCELERATED_COMPOSITING) |
| 3711 if (TiledBacking* tiledBacking = this->tiledBacking()) | 3715 if (TiledBacking* tiledBacking = this->tiledBacking()) |
| 3712 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); | 3716 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); |
| 3713 #else | 3717 #else |
| 3714 UNUSED_PARAM(flag); | 3718 UNUSED_PARAM(flag); |
| 3715 #endif | 3719 #endif |
| 3716 } | 3720 } |
| 3717 | 3721 |
| 3718 } // namespace WebCore | 3722 } // namespace WebCore |
| OLD | NEW |