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

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

Issue 27030009: Revert "Make compositingState explicit (re-land #2 with bogus ASSERT removed)" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build error Created 7 years, 2 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 | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 void filterNeedsRepaint(); 455 void filterNeedsRepaint();
456 bool hasFilter() const { return renderer()->hasFilter(); } 456 bool hasFilter() const { return renderer()->hasFilter(); }
457 457
458 bool hasBlendMode() const; 458 bool hasBlendMode() const;
459 459
460 void* operator new(size_t); 460 void* operator new(size_t);
461 // Only safe to call from RenderLayerModelObject::destroyLayer() 461 // Only safe to call from RenderLayerModelObject::destroyLayer()
462 void operator delete(void*); 462 void operator delete(void*);
463 463
464 CompositingState compositingState() const; 464 bool adjustForForceCompositedScrollingMode(bool) const;
465 465
466 CompositedLayerMapping* compositedLayerMapping() const 466 bool isComposited() const { return m_compositedLayerMapping; }
467 { 467 bool hasCompositedMask() const;
468 // NOTE: Checking whether backing exists is equivalent to asking if you are in one of these two compositing states. 468 bool hasCompositedClippingMask() const;
469 // If this is why you are using compositedLayerMapping(), consider using compositingState() instead. 469 CompositedLayerMapping* compositedLayerMapping() const { return m_composited LayerMapping.get(); }
470 return m_compositedLayerMapping.get();
471 }
472
473 CompositedLayerMapping* ensureCompositedLayerMapping(); 470 CompositedLayerMapping* ensureCompositedLayerMapping();
474 void clearCompositedLayerMapping(bool layerBeingDestroyed = false); 471 void clearCompositedLayerMapping(bool layerBeingDestroyed = false);
475 bool adjustForForceCompositedScrollingMode(bool) const;
476
477 bool hasCompositedMask() const;
478 bool hasCompositedClippingMask() const;
479 bool needsCompositedScrolling() const; 472 bool needsCompositedScrolling() const;
480 bool needsToBeStackingContainer() const; 473 bool needsToBeStackingContainer() const;
481 474
482 RenderLayer* scrollParent() const; 475 RenderLayer* scrollParent() const;
483 RenderLayer* clipParent() const; 476 RenderLayer* clipParent() const;
484 477
485 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const RenderStyle* newStyle) const; 478 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const RenderStyle* newStyle) const;
486 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const; 479 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const;
487 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co nst RenderStyle* newStyle, bool didPaintWithFilters) const; 480 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co nst RenderStyle* newStyle, bool didPaintWithFilters) const;
488 481
489 bool paintsWithTransparency(PaintBehavior paintBehavior) const 482 bool paintsWithTransparency(PaintBehavior paintBehavior) const
490 { 483 {
491 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking); 484 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || !isComposited());
492 } 485 }
493 486
494 bool paintsWithTransform(PaintBehavior) const; 487 bool paintsWithTransform(PaintBehavior) const;
495 488
496 // Returns true if background phase is painted opaque in the given rect. 489 // Returns true if background phase is painted opaque in the given rect.
497 // The query rect is given in local coordinates. 490 // The query rect is given in local coordinates.
498 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; 491 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const;
499 492
500 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS crollbars; } 493 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS crollbars; }
501 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir tyOverlayScrollbars = dirtyScrollbars; } 494 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir tyOverlayScrollbars = dirtyScrollbars; }
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1004
1012 } // namespace WebCore 1005 } // namespace WebCore
1013 1006
1014 #ifndef NDEBUG 1007 #ifndef NDEBUG
1015 // Outside the WebCore namespace for ease of invocation from gdb. 1008 // Outside the WebCore namespace for ease of invocation from gdb.
1016 void showLayerTree(const WebCore::RenderLayer*); 1009 void showLayerTree(const WebCore::RenderLayer*);
1017 void showLayerTree(const WebCore::RenderObject*); 1010 void showLayerTree(const WebCore::RenderObject*);
1018 #endif 1011 #endif
1019 1012
1020 #endif // RenderLayer_h 1013 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698