Changeset 156639 in webkit for trunk/Source/WebCore/rendering/RenderElement.h
- Timestamp:
- Sep 30, 2013, 1:21:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderElement.h
r156622 r156639 70 70 virtual RenderElement* hoverAncestor() const; 71 71 72 virtual void dirtyLinesFromChangedChild(RenderObject*) { } 73 74 bool ancestorLineBoxDirty() const { return m_ancestorLineBoxDirty; } 75 void setAncestorLineBoxDirty(bool f = true); 76 72 77 // Return the renderer whose background style is used to paint the root background. Should only be called on the renderer for which isRoot() is true. 73 78 RenderElement* rendererForRootBackground(); … … 125 130 RenderStyle* cachedFirstLineStyle() const; 126 131 132 bool m_ancestorLineBoxDirty : 1; 133 127 134 RenderObject* m_firstChild; 128 135 RenderObject* m_lastChild; … … 141 148 } 142 149 150 inline void RenderElement::setAncestorLineBoxDirty(bool f) 151 { 152 m_ancestorLineBoxDirty = f; 153 if (m_ancestorLineBoxDirty) 154 setNeedsLayout(true); 155 } 156 143 157 inline LayoutUnit RenderElement::valueForLength(const Length& length, LayoutUnit maximumValue, bool roundPercentages) const 144 158 { … … 193 207 } 194 208 209 inline void RenderObject::setNeedsLayout(bool needsLayout, MarkingBehavior markParents) 210 { 211 bool alreadyNeededLayout = m_bitfields.needsLayout(); 212 m_bitfields.setNeedsLayout(needsLayout); 213 if (needsLayout) { 214 ASSERT(!isSetNeedsLayoutForbidden()); 215 if (!alreadyNeededLayout) { 216 if (markParents == MarkContainingBlockChain) 217 markContainingBlocksForLayout(); 218 if (hasLayer()) 219 setLayerNeedsFullRepaint(); 220 } 221 } else { 222 setEverHadLayout(true); 223 setPosChildNeedsLayout(false); 224 setNeedsSimplifiedNormalFlowLayout(false); 225 setNormalChildNeedsLayout(false); 226 setNeedsPositionedMovementLayout(false); 227 if (isRenderElement()) 228 toRenderElement(this)->setAncestorLineBoxDirty(false); 229 #ifndef NDEBUG 230 checkBlockPositionedObjectsNeedLayout(); 231 #endif 232 } 233 } 234 195 235 inline RenderElement* ContainerNode::renderer() const 196 236 {
Note:
See TracChangeset
for help on using the changeset viewer.