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

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

Issue 271753002: Remove compositing trigger for will-change: top (and similar) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove from layerTypeRequired logic Created 6 years, 7 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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual bool isTableRow() const OVERRIDE { return true; } 97 virtual bool isTableRow() const OVERRIDE { return true; }
98 98
99 virtual void willBeRemovedFromTree() OVERRIDE; 99 virtual void willBeRemovedFromTree() OVERRIDE;
100 100
101 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE; 101 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE;
102 virtual void layout() OVERRIDE; 102 virtual void layout() OVERRIDE;
103 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 103 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
104 104
105 virtual LayerType layerTypeRequired() const OVERRIDE 105 virtual LayerType layerTypeRequired() const OVERRIDE
106 { 106 {
107 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up() || isStickyPositioned() || style()->hasWillChangeCompositingHint() || style ()->shouldCompositeForCurrentAnimations()) 107 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up() || isStickyPositioned() || style()->shouldCompositeForCurrentAnimations())
108 return NormalLayer; 108 return NormalLayer;
109 109
110 if (hasOverflowClip()) 110 if (hasOverflowClip())
111 return OverflowClipLayer; 111 return OverflowClipLayer;
112 112
113 return NoLayer; 113 return NoLayer;
114 } 114 }
115 115
116 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 116 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
117 117
118 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 118 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
119 119
120 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 120 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
121 121
122 RenderObjectChildList m_children; 122 RenderObjectChildList m_children;
123 unsigned m_rowIndex : 31; 123 unsigned m_rowIndex : 31;
124 }; 124 };
125 125
126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow()); 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow());
127 127
128 } // namespace WebCore 128 } // namespace WebCore
129 129
130 #endif // RenderTableRow_h 130 #endif // RenderTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698