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

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

Issue 177653010: Increase width of viewportConstrainedNotCompositingReasons (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 9 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 | 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) 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool isInTopLayerSubtree() const; 424 bool isInTopLayerSubtree() const;
425 425
426 enum ViewportConstrainedNotCompositedReason { 426 enum ViewportConstrainedNotCompositedReason {
427 NoNotCompositedReason, 427 NoNotCompositedReason,
428 NotCompositedForBoundsOutOfView, 428 NotCompositedForBoundsOutOfView,
429 NotCompositedForNonViewContainer, 429 NotCompositedForNonViewContainer,
430 NotCompositedForNoVisibleContent, 430 NotCompositedForNoVisibleContent,
431 NotCompositedForUnscrollableAncestors, 431 NotCompositedForUnscrollableAncestors,
432 }; 432 };
433 433
434 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi tedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReas on = reason; } 434 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi tedReason reason)
435 {
436 m_compositingProperties.viewportConstrainedNotCompositedReason = reason;
437 ASSERT(viewportConstrainedNotCompositedReason() == reason);
enne (OOO) 2014/02/28 20:47:07 Not sure this makes any sense either anymore.
438 }
439
435 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi tingProperties.viewportConstrainedNotCompositedReason); } 440 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi tingProperties.viewportConstrainedNotCompositedReason); }
436 441
437 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen derFlowThread(); } 442 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen derFlowThread(); }
438 443
439 bool scrollsWithRespectTo(const RenderLayer*) const; 444 bool scrollsWithRespectTo(const RenderLayer*) const;
440 445
441 void addLayerHitTestRects(LayerHitTestRects&) const; 446 void addLayerHitTestRects(LayerHitTestRects&) const;
442 447
443 // Compute rects only for this layer 448 // Compute rects only for this layer
444 void computeSelfHitTestRects(LayerHitTestRects&) const; 449 void computeSelfHitTestRects(LayerHitTestRects&) const;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 bool hasNonCompositedChild : 1; 729 bool hasNonCompositedChild : 1;
725 730
726 // Should be for stacking contexts having unisolated blending descendant s. 731 // Should be for stacking contexts having unisolated blending descendant s.
727 bool shouldIsolateCompositedDescendants : 1; 732 bool shouldIsolateCompositedDescendants : 1;
728 733
729 // True if this render layer just lost its grouped mapping due to the Co mpositedLayerMapping being destroyed, 734 // True if this render layer just lost its grouped mapping due to the Co mpositedLayerMapping being destroyed,
730 // and we don't yet know to what graphics layer this RenderLayer will be assigned. 735 // and we don't yet know to what graphics layer this RenderLayer will be assigned.
731 bool lostGroupedMapping : 1; 736 bool lostGroupedMapping : 1;
732 737
733 // The reason, if any exists, that a fixed-position layer is chosen not to be composited. 738 // The reason, if any exists, that a fixed-position layer is chosen not to be composited.
734 unsigned viewportConstrainedNotCompositedReason : 2; 739 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedR eason;
735 740
736 // Once computed, indicates all that a layer needs to become composited using the CompositingReasons enum bitfield. 741 // Once computed, indicates all that a layer needs to become composited using the CompositingReasons enum bitfield.
737 CompositingReasons compositingReasons; 742 CompositingReasons compositingReasons;
738 743
739 // Used for invalidating this layer's contents on the squashing Graphics Layer. 744 // Used for invalidating this layer's contents on the squashing Graphics Layer.
740 IntSize offsetFromSquashingLayerOrigin; 745 IntSize offsetFromSquashingLayerOrigin;
741 }; 746 };
742 747
743 CompositingProperties m_compositingProperties; 748 CompositingProperties m_compositingProperties;
744 749
(...skipping 14 matching lines...) Expand all
759 764
760 } // namespace WebCore 765 } // namespace WebCore
761 766
762 #ifndef NDEBUG 767 #ifndef NDEBUG
763 // Outside the WebCore namespace for ease of invocation from gdb. 768 // Outside the WebCore namespace for ease of invocation from gdb.
764 void showLayerTree(const WebCore::RenderLayer*); 769 void showLayerTree(const WebCore::RenderLayer*);
765 void showLayerTree(const WebCore::RenderObject*); 770 void showLayerTree(const WebCore::RenderObject*);
766 #endif 771 #endif
767 772
768 #endif // RenderLayer_h 773 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698