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

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

Issue 662483002: Ensure positioned descendants are invalidated if needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google 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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationBacking); 1094 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationBacking);
1095 void fullyInvalidatePaint(const RenderLayerModelObject& paintInvalidationCon tainer, PaintInvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBounds); 1095 void fullyInvalidatePaint(const RenderLayerModelObject& paintInvalidationCon tainer, PaintInvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBounds);
1096 1096
1097 #if ENABLE(ASSERT) 1097 #if ENABLE(ASSERT)
1098 virtual bool paintInvalidationStateIsDirty() const 1098 virtual bool paintInvalidationStateIsDirty() const
1099 { 1099 {
1100 return neededLayoutBecauseOfChildren() || shouldCheckForPaintInvalidatio nRegardlessOfPaintInvalidationState(); 1100 return neededLayoutBecauseOfChildren() || shouldCheckForPaintInvalidatio nRegardlessOfPaintInvalidationState();
1101 } 1101 }
1102 #endif 1102 #endif
1103 1103
1104 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&); 1104 virtual void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPaintInvalidationState);
1105 virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidat ionState&, const RenderLayerModelObject& paintInvalidationContainer); 1105 virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidat ionState&, const RenderLayerModelObject& paintInvalidationContainer);
1106 1106
1107 private: 1107 private:
1108 void setLayoutDidGetCalledSinceLastFrame() 1108 void setLayoutDidGetCalledSinceLastFrame()
1109 { 1109 {
1110 m_bitfields.setLayoutDidGetCalledSinceLastFrame(true); 1110 m_bitfields.setLayoutDidGetCalledSinceLastFrame(true);
1111 1111
1112 // Make sure our parent is marked as needing invalidation. 1112 // Make sure our parent is marked as needing invalidation.
1113 // This would be unneeded if we allowed sub-tree invalidation (akin to s ub-tree layouts). 1113 // This would be unneeded if we allowed sub-tree invalidation (akin to s ub-tree layouts).
1114 markContainingBlockChainForPaintInvalidation(); 1114 markContainingBlockChainForPaintInvalidation();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 void showTree(const blink::RenderObject*); 1536 void showTree(const blink::RenderObject*);
1537 void showLineTree(const blink::RenderObject*); 1537 void showLineTree(const blink::RenderObject*);
1538 void showRenderTree(const blink::RenderObject* object1); 1538 void showRenderTree(const blink::RenderObject* object1);
1539 // We don't make object2 an optional parameter so that showRenderTree 1539 // We don't make object2 an optional parameter so that showRenderTree
1540 // can be called from gdb easily. 1540 // can be called from gdb easily.
1541 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1541 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1542 1542
1543 #endif 1543 #endif
1544 1544
1545 #endif // RenderObject_h 1545 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698