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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 319863004: Remove setCompositingLayersNeedRebuild call in RenderLayer::styleChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.cpp » ('j') | 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 RenderLayer* scrollParent() const; 339 RenderLayer* scrollParent() const;
340 RenderLayer* clipParent() const; 340 RenderLayer* clipParent() const;
341 341
342 // Adjusts the given rect to the coordinate space of the repaint container's GraphicsLayer backing. 342 // Adjusts the given rect to the coordinate space of the repaint container's GraphicsLayer backing.
343 void mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer, LayoutRect&) const; 343 void mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer, LayoutRect&) const;
344 344
345 // Computes the bounding repaint rect for |renderObject|, in the coordinate space of |repaintContainer|'s GraphicsLayer backing. 345 // Computes the bounding repaint rect for |renderObject|, in the coordinate space of |repaintContainer|'s GraphicsLayer backing.
346 static LayoutRect computeRepaintRect(const RenderObject*, const RenderLayer* repaintContainer); 346 static LayoutRect computeRepaintRect(const RenderObject*, const RenderLayer* repaintContainer);
347 347
348 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const RenderStyle* newStyle) const;
349 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const;
350 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co nst RenderStyle* newStyle) const;
351 bool needsCompositingLayersRebuiltForBlending(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const;
352
353 bool paintsWithTransparency(PaintBehavior paintBehavior) const 348 bool paintsWithTransparency(PaintBehavior paintBehavior) const
354 { 349 {
355 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking); 350 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking);
356 } 351 }
357 352
358 bool paintsWithTransform(PaintBehavior) const; 353 bool paintsWithTransform(PaintBehavior) const;
359 354
360 // Returns true if background phase is painted opaque in the given rect. 355 // Returns true if background phase is painted opaque in the given rect.
361 // The query rect is given in local coordinates. 356 // The query rect is given in local coordinates.
362 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; 357 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 725
731 } // namespace WebCore 726 } // namespace WebCore
732 727
733 #ifndef NDEBUG 728 #ifndef NDEBUG
734 // Outside the WebCore namespace for ease of invocation from gdb. 729 // Outside the WebCore namespace for ease of invocation from gdb.
735 void showLayerTree(const WebCore::RenderLayer*); 730 void showLayerTree(const WebCore::RenderLayer*);
736 void showLayerTree(const WebCore::RenderObject*); 731 void showLayerTree(const WebCore::RenderObject*);
737 #endif 732 #endif
738 733
739 #endif // RenderLayer_h 734 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698