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

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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 bool hasFilterInfo() const { return m_hasFilterInfo; } 416 bool hasFilterInfo() const { return m_hasFilterInfo; }
417 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo; } 417 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo; }
418 418
419 void updateFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle) ; 419 void updateFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle) ;
420 420
421 Node* enclosingElement() const; 421 Node* enclosingElement() const;
422 422
423 bool isInTopLayer() const; 423 bool isInTopLayer() const;
424 bool isInTopLayerSubtree() const; 424 bool isInTopLayerSubtree() const;
425 425
426 // Note: this is internally stored using a minimal number of bits. Ensure
427 // that you have enough when you add to this enum!
426 enum ViewportConstrainedNotCompositedReason { 428 enum ViewportConstrainedNotCompositedReason {
427 NoNotCompositedReason, 429 NoNotCompositedReason,
428 NotCompositedForBoundsOutOfView, 430 NotCompositedForBoundsOutOfView,
429 NotCompositedForNonViewContainer, 431 NotCompositedForNonViewContainer,
430 NotCompositedForNoVisibleContent, 432 NotCompositedForNoVisibleContent,
431 NotCompositedForUnscrollableAncestors, 433 NotCompositedForUnscrollableAncestors,
432 }; 434 };
433 435
434 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi tedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReas on = reason; } 436 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi tedReason reason)
437 {
438 m_compositingProperties.viewportConstrainedNotCompositedReason = reason;
439 // This can fail if we forget to change the width of the viewportConstra inedNotCompositedReason
440 // when we update the enum.
441 ASSERT(viewportConstrainedNotCompositedReason() == reason);
enne (OOO) 2014/02/28 20:28:46 Compile assert?
442 }
443
435 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi tingProperties.viewportConstrainedNotCompositedReason); } 444 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi tingProperties.viewportConstrainedNotCompositedReason); }
436 445
437 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen derFlowThread(); } 446 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen derFlowThread(); }
438 447
439 bool scrollsWithRespectTo(const RenderLayer*) const; 448 bool scrollsWithRespectTo(const RenderLayer*) const;
440 449
441 void addLayerHitTestRects(LayerHitTestRects&) const; 450 void addLayerHitTestRects(LayerHitTestRects&) const;
442 451
443 // Compute rects only for this layer 452 // Compute rects only for this layer
444 void computeSelfHitTestRects(LayerHitTestRects&) const; 453 void computeSelfHitTestRects(LayerHitTestRects&) const;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 bool hasNonCompositedChild : 1; 733 bool hasNonCompositedChild : 1;
725 734
726 // Should be for stacking contexts having unisolated blending descendant s. 735 // Should be for stacking contexts having unisolated blending descendant s.
727 bool shouldIsolateCompositedDescendants : 1; 736 bool shouldIsolateCompositedDescendants : 1;
728 737
729 // True if this render layer just lost its grouped mapping due to the Co mpositedLayerMapping being destroyed, 738 // 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. 739 // and we don't yet know to what graphics layer this RenderLayer will be assigned.
731 bool lostGroupedMapping : 1; 740 bool lostGroupedMapping : 1;
732 741
733 // The reason, if any exists, that a fixed-position layer is chosen not to be composited. 742 // The reason, if any exists, that a fixed-position layer is chosen not to be composited.
734 unsigned viewportConstrainedNotCompositedReason : 2; 743 unsigned viewportConstrainedNotCompositedReason : 3;
735 744
736 // Once computed, indicates all that a layer needs to become composited using the CompositingReasons enum bitfield. 745 // Once computed, indicates all that a layer needs to become composited using the CompositingReasons enum bitfield.
737 CompositingReasons compositingReasons; 746 CompositingReasons compositingReasons;
738 747
739 // Used for invalidating this layer's contents on the squashing Graphics Layer. 748 // Used for invalidating this layer's contents on the squashing Graphics Layer.
740 IntSize offsetFromSquashingLayerOrigin; 749 IntSize offsetFromSquashingLayerOrigin;
741 }; 750 };
742 751
743 CompositingProperties m_compositingProperties; 752 CompositingProperties m_compositingProperties;
744 753
(...skipping 14 matching lines...) Expand all
759 768
760 } // namespace WebCore 769 } // namespace WebCore
761 770
762 #ifndef NDEBUG 771 #ifndef NDEBUG
763 // Outside the WebCore namespace for ease of invocation from gdb. 772 // Outside the WebCore namespace for ease of invocation from gdb.
764 void showLayerTree(const WebCore::RenderLayer*); 773 void showLayerTree(const WebCore::RenderLayer*);
765 void showLayerTree(const WebCore::RenderObject*); 774 void showLayerTree(const WebCore::RenderObject*);
766 #endif 775 #endif
767 776
768 #endif // RenderLayer_h 777 #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