Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: Source/WebCore/rendering/RenderView.cpp

Issue 10342008: Revert 114283 - Avoid using backing store for compositing layers that just need to clip (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1123/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderTreeAsText.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderTreeAsText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698