OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // a transform, transparency layer, etc. | 427 // a transform, transparency layer, etc. |
428 Element* elt; | 428 Element* elt; |
429 for (elt = document()->ownerElement(); view() && elt && elt->renderer(); elt
= elt->document()->ownerElement()) { | 429 for (elt = document()->ownerElement(); view() && elt && elt->renderer(); elt
= elt->document()->ownerElement()) { |
430 RenderLayer* layer = elt->renderer()->enclosingLayer(); | 430 RenderLayer* layer = elt->renderer()->enclosingLayer(); |
431 if (layer->cannotBlitToWindow()) { | 431 if (layer->cannotBlitToWindow()) { |
432 frameView()->setCannotBlitToWindow(); | 432 frameView()->setCannotBlitToWindow(); |
433 break; | 433 break; |
434 } | 434 } |
435 | 435 |
436 if (RenderLayer* compositingLayer = layer->enclosingCompositingLayerForR
epaint()) { | 436 if (RenderLayer* compositingLayer = layer->enclosingCompositingLayerForR
epaint()) { |
437 frameView()->setCannotBlitToWindow(); | 437 if (!compositingLayer->backing()->paintsIntoWindow()) { |
438 break; | 438 frameView()->setCannotBlitToWindow(); |
| 439 break; |
| 440 } |
439 } | 441 } |
440 } | 442 } |
441 | 443 |
442 if (document()->ownerElement() || !view()) | 444 if (document()->ownerElement() || !view()) |
443 return; | 445 return; |
444 | 446 |
445 if (paintInfo.skipRootBackground()) | 447 if (paintInfo.skipRootBackground()) |
446 return; | 448 return; |
447 | 449 |
448 bool rootFillsViewport = false; | 450 bool rootFillsViewport = false; |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 #endif | 1161 #endif |
1160 | 1162 |
1161 if (layoutState) | 1163 if (layoutState) |
1162 layoutState->m_isPaginated = m_fragmenting; | 1164 layoutState->m_isPaginated = m_fragmenting; |
1163 | 1165 |
1164 if (m_flowThreadState != RenderObject::NotInsideFlowThread) | 1166 if (m_flowThreadState != RenderObject::NotInsideFlowThread) |
1165 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); | 1167 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); |
1166 } | 1168 } |
1167 | 1169 |
1168 } // namespace WebCore | 1170 } // namespace WebCore |
OLD | NEW |