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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // a transform, transparency layer, etc. | 248 // a transform, transparency layer, etc. |
249 Element* elt; | 249 Element* elt; |
250 for (elt = document()->ownerElement(); view() && elt && elt->renderer(); elt
= elt->document()->ownerElement()) { | 250 for (elt = document()->ownerElement(); view() && elt && elt->renderer(); elt
= elt->document()->ownerElement()) { |
251 RenderLayer* layer = elt->renderer()->enclosingLayer(); | 251 RenderLayer* layer = elt->renderer()->enclosingLayer(); |
252 if (layer->cannotBlitToWindow()) { | 252 if (layer->cannotBlitToWindow()) { |
253 frameView()->setCannotBlitToWindow(); | 253 frameView()->setCannotBlitToWindow(); |
254 break; | 254 break; |
255 } | 255 } |
256 | 256 |
257 #if USE(ACCELERATED_COMPOSITING) | 257 #if USE(ACCELERATED_COMPOSITING) |
258 if (RenderLayer* compositingLayer = layer->enclosingCompositingLayerForR
epaint()) { | 258 if (RenderLayer* compositingLayer = layer->enclosingCompositingLayer())
{ |
259 if (!compositingLayer->backing()->paintsIntoWindow()) { | 259 if (!compositingLayer->backing()->paintsIntoWindow()) { |
260 frameView()->setCannotBlitToWindow(); | 260 frameView()->setCannotBlitToWindow(); |
261 break; | 261 break; |
262 } | 262 } |
263 } | 263 } |
264 #endif | 264 #endif |
265 } | 265 } |
266 | 266 |
267 if (document()->ownerElement() || !view()) | 267 if (document()->ownerElement() || !view()) |
268 return; | 268 return; |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 | 945 |
946 void RenderView::removeFixedPositionedObject(RenderBox* object) | 946 void RenderView::removeFixedPositionedObject(RenderBox* object) |
947 { | 947 { |
948 if (!m_positionedObjects) | 948 if (!m_positionedObjects) |
949 return; | 949 return; |
950 | 950 |
951 m_positionedObjects->remove(object); | 951 m_positionedObjects->remove(object); |
952 } | 952 } |
953 | 953 |
954 } // namespace WebCore | 954 } // namespace WebCore |
OLD | NEW |