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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 708213002: Remove the HasOwnBackingButPaintsIntoAncestor compositing state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed more tests. Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/compositing/GraphicsLayerUpdater.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) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 compositedLayerMappingChanged = true; 452 compositedLayerMappingChanged = true;
453 } 453 }
454 454
455 break; 455 break;
456 case RemoveFromSquashingLayer: 456 case RemoveFromSquashingLayer:
457 case NoCompositingStateChange: 457 case NoCompositingStateChange:
458 // Do nothing. 458 // Do nothing.
459 break; 459 break;
460 } 460 }
461 461
462 if (layer->hasCompositedLayerMapping() && layer->compositedLayerMapping()->u pdateRequiresOwnBackingStoreForIntrinsicReasons()) {
463 compositedLayerMappingChanged = true;
464 layer->compositedLayerMapping()->setNeedsGraphicsLayerUpdate(GraphicsLay erUpdateSubtree);
465 }
466
467 if (compositedLayerMappingChanged && layer->renderer()->isRenderPart()) { 462 if (compositedLayerMappingChanged && layer->renderer()->isRenderPart()) {
468 RenderLayerCompositor* innerCompositor = frameContentsCompositor(toRende rPart(layer->renderer())); 463 RenderLayerCompositor* innerCompositor = frameContentsCompositor(toRende rPart(layer->renderer()));
469 if (innerCompositor && innerCompositor->staleInCompositingMode()) 464 if (innerCompositor && innerCompositor->staleInCompositingMode())
470 innerCompositor->updateRootLayerAttachment(); 465 innerCompositor->updateRootLayerAttachment();
471 } 466 }
472 467
473 if (compositedLayerMappingChanged) 468 if (compositedLayerMappingChanged)
474 layer->clipper().clearClipRectsIncludingDescendants(PaintingClipRects); 469 layer->clipper().clearClipRectsIncludingDescendants(PaintingClipRects);
475 470
476 // If a fixed position layer gained/lost a compositedLayerMapping or the rea son not compositing it changed, 471 // If a fixed position layer gained/lost a compositedLayerMapping or the rea son not compositing it changed,
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 } else if (graphicsLayer == m_scrollLayer.get()) { 1188 } else if (graphicsLayer == m_scrollLayer.get()) {
1194 name = "LocalFrame Scrolling Layer"; 1189 name = "LocalFrame Scrolling Layer";
1195 } else { 1190 } else {
1196 ASSERT_NOT_REACHED(); 1191 ASSERT_NOT_REACHED();
1197 } 1192 }
1198 1193
1199 return name; 1194 return name;
1200 } 1195 }
1201 1196
1202 } // namespace blink 1197 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/GraphicsLayerUpdater.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698