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

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

Issue 189883003: Web Animations: Allow animations with delay to start on compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Relax assert. 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 * 20 *
21 */ 21 */
22 22
23 #ifndef RenderBox_h 23 #ifndef RenderBox_h
24 #define RenderBox_h 24 #define RenderBox_h
25 25
26 #include "core/animation/ActiveAnimations.h"
26 #include "core/rendering/RenderBoxModelObject.h" 27 #include "core/rendering/RenderBoxModelObject.h"
27 #include "core/rendering/RenderOverflow.h" 28 #include "core/rendering/RenderOverflow.h"
28 #include "core/rendering/shapes/ShapeOutsideInfo.h" 29 #include "core/rendering/shapes/ShapeOutsideInfo.h"
29 #include "platform/scroll/ScrollTypes.h" 30 #include "platform/scroll/ScrollTypes.h"
30 31
31 namespace WebCore { 32 namespace WebCore {
32 33
33 struct PaintInfo; 34 struct PaintInfo;
34 35
35 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; 36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize };
(...skipping 28 matching lines...) Expand all
64 65
65 66
66 class RenderBox : public RenderBoxModelObject { 67 class RenderBox : public RenderBoxModelObject {
67 public: 68 public:
68 explicit RenderBox(ContainerNode*); 69 explicit RenderBox(ContainerNode*);
69 70
70 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since 71 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since
71 // position:static elements that are not flex-items get their z-index coerce d to auto. 72 // position:static elements that are not flex-items get their z-index coerce d to auto.
72 virtual LayerType layerTypeRequired() const OVERRIDE 73 virtual LayerType layerTypeRequired() const OVERRIDE
73 { 74 {
74 if (isRoot() || isPositioned() || createsGroup() || hasClipPath() || has Transform() || hasHiddenBackface() || hasReflection() || style()->specifiesColum ns() || !style()->hasAutoZIndex() || style()->hasWillChangeCompositingHint() || style()->hasWillChangeGpuRasterizationHint()) 75 if (isRoot() || isPositioned() || createsGroup() || hasClipPath() || has Transform() || hasHiddenBackface() || hasReflection() || style()->specifiesColum ns() || !style()->hasAutoZIndex() || style()->hasWillChangeCompositingHint() || style()->hasWillChangeGpuRasterizationHint() || shouldCompositeForActiveAnimatio ns(*this))
75 return NormalLayer; 76 return NormalLayer;
76 if (hasOverflowClip()) 77 if (hasOverflowClip())
77 return OverflowClipLayer; 78 return OverflowClipLayer;
78 79
79 return NoLayer; 80 return NoLayer;
80 } 81 }
81 82
82 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE; 83 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE;
83 84
84 // Use this with caution! No type checking is done! 85 // Use this with caution! No type checking is done!
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 if (UNLIKELY(inlineBoxWrapper() != 0)) 775 if (UNLIKELY(inlineBoxWrapper() != 0))
775 deleteLineBoxWrapper(); 776 deleteLineBoxWrapper();
776 } 777 }
777 778
778 ensureRareData().m_inlineBoxWrapper = boxWrapper; 779 ensureRareData().m_inlineBoxWrapper = boxWrapper;
779 } 780 }
780 781
781 } // namespace WebCore 782 } // namespace WebCore
782 783
783 #endif // RenderBox_h 784 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/AnimatedStyleBuilder.cpp ('k') | Source/core/rendering/RenderBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698