1 /* 2 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: 7 * 8 * * Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * * Redistributions in binary form must reproduce the above 11 * copyright notice, this list of conditions and the following disclaimer 12 * in the documentation and/or other materials provided with the 13 * distribution. 14 * * Neither the name of Google Inc. nor the names of its 15 * contributors may be used to endorse or promote products derived from 16 * this software without specific prior written permission. 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31 #ifndef WebCompositingReasons_h 32 #define WebCompositingReasons_h 33 34 #include "WebCommon.h" 35 #include <stdint.h> 36 37 namespace blink { 38 39 // This is a clone of CompositingReasons in RenderLayer.h. 40 const uint64_t CompositingReasonUnknown = 0; 41 const uint64_t CompositingReason3DTransform = static_cast<uint64_t>(1) << 0; 42 const uint64_t CompositingReasonVideo = static_cast<uint64_t>(1) << 1; 43 const uint64_t CompositingReasonCanvas = static_cast<uint64_t>(1) << 2; 44 const uint64_t CompositingReasonPlugin = static_cast<uint64_t>(1) << 3; 45 const uint64_t CompositingReasonIFrame = static_cast<uint64_t>(1) << 4; 46 const uint64_t CompositingReasonBackfaceVisibilityHidden = static_cast<uint64_t>(1) << 5; 47 const uint64_t CompositingReasonAnimation = static_cast<uint64_t>(1) << 6; 48 const uint64_t CompositingReasonFilters = static_cast<uint64_t>(1) << 7; 49 const uint64_t CompositingReasonPositionFixed = static_cast<uint64_t>(1) << 8; 50 const uint64_t CompositingReasonPositionSticky = static_cast<uint64_t>(1) << 9; 51 const uint64_t CompositingReasonOverflowScrollingTouch = static_cast<uint64_t>(1) << 10; 52 const uint64_t CompositingReasonAssumedOverlap = static_cast<uint64_t>(1) << 12; 53 const uint64_t CompositingReasonOverlap = static_cast<uint64_t>(1) << 13; 54 const uint64_t CompositingReasonNegativeZIndexChildren = static_cast<uint64_t>(1) << 14; 55 const uint64_t CompositingReasonTransformWithCompositedDescendants = static_cast<uint64_t>(1) << 15; 56 const uint64_t CompositingReasonOpacityWithCompositedDescendants = static_cast<uint64_t>(1) << 16; 57 const uint64_t CompositingReasonMaskWithCompositedDescendants = static_cast<uint64_t>(1) << 17; 58 const uint64_t CompositingReasonReflectionWithCompositedDescendants = static_cast<uint64_t>(1) << 18; 59 const uint64_t CompositingReasonFilterWithCompositedDescendants = static_cast<uint64_t>(1) << 19; 60 const uint64_t CompositingReasonBlendingWithCompositedDescendants = static_cast<uint64_t>(1) << 20; 61 const uint64_t CompositingReasonClipsCompositingDescendants = static_cast<uint64_t>(1) << 21; 62 const uint64_t CompositingReasonPerspective = static_cast<uint64_t>(1) << 22; 63 const uint64_t CompositingReasonPreserve3D = static_cast<uint64_t>(1) << 23; 64 const uint64_t CompositingReasonReflectionOfCompositedParent = static_cast<uint64_t>(1) << 24; 65 const uint64_t CompositingReasonRoot = static_cast<uint64_t>(1) << 25; 66 const uint64_t CompositingReasonLayerForClip = static_cast<uint64_t>(1) << 26; 67 const uint64_t CompositingReasonLayerForScrollbar = static_cast<uint64_t>(1) << 27; 68 const uint64_t CompositingReasonLayerForScrollingContainer = static_cast<uint64_t>(1) << 28; 69 const uint64_t CompositingReasonLayerForForeground = static_cast<uint64_t>(1) << 29; 70 const uint64_t CompositingReasonLayerForBackground = static_cast<uint64_t>(1) << 30; 71 const uint64_t CompositingReasonLayerForMask = static_cast<uint64_t>(1) << 31; 72 const uint64_t CompositingReasonOverflowScrollingParent = static_cast<uint64_t>(1) << 32; 73 const uint64_t CompositingReasonOutOfFlowClipping = static_cast<uint64_t>(1) << 33; 74 const uint64_t CompositingReasonIsolateCompositedDescendants = static_cast<uint64_t>(1) << 35; 75 76 typedef uint64_t WebCompositingReasons; 77 78 } // namespace blink 79 80 #endif // WebCompositingReasons_h 81