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

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

Issue 285103003: [RAL] Make sure RenderLayers are invalidated when moved. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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) 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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); } 995 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); }
996 996
997 void clearRepaintState(); 997 void clearRepaintState();
998 998
999 // layoutDidGetCalled indicates whether this render object was re-laid-out 999 // layoutDidGetCalled indicates whether this render object was re-laid-out
1000 // since the last call to setLayoutDidGetCalled(false) on this object. 1000 // since the last call to setLayoutDidGetCalled(false) on this object.
1001 bool layoutDidGetCalled() { return m_bitfields.layoutDidGetCalled(); } 1001 bool layoutDidGetCalled() { return m_bitfields.layoutDidGetCalled(); }
1002 void setLayoutDidGetCalled(bool b) { m_bitfields.setLayoutDidGetCalled(b); } 1002 void setLayoutDidGetCalled(bool b) { m_bitfields.setLayoutDidGetCalled(b); }
1003 1003
1004 bool mayNeedInvalidation() { return m_bitfields.mayNeedInvalidation(); } 1004 bool mayNeedInvalidation() { return m_bitfields.mayNeedInvalidation(); }
1005 void setMayNeedInvalidationNonRecursive(bool b) { m_bitfields.setMayNeedInva lidation(b); }
Julien - ping for review 2014/05/27 12:34:53 Not a huge fan of 'non-recursive' as it doesn't gi
dsinclair 2014/05/27 15:37:13 Done.
1005 void setMayNeedInvalidation(bool b) 1006 void setMayNeedInvalidation(bool b)
1006 { 1007 {
1007 m_bitfields.setMayNeedInvalidation(b); 1008 setMayNeedInvalidationNonRecursive(b);
1008 1009
1009 // Make sure our parent is marked as needing invalidation. 1010 // Make sure our parent is marked as needing invalidation.
1010 if (b && parent() && !parent()->mayNeedInvalidation()) 1011 if (b && parent() && !parent()->mayNeedInvalidation())
1011 parent()->setMayNeedInvalidation(b); 1012 parent()->setMayNeedInvalidation(b);
1012 } 1013 }
1013 1014
1014 bool shouldCheckForInvalidationAfterLayout() 1015 bool shouldCheckForInvalidationAfterLayout()
1015 { 1016 {
1016 return layoutDidGetCalled() || mayNeedInvalidation(); 1017 return layoutDidGetCalled() || mayNeedInvalidation();
1017 } 1018 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 void showTree(const WebCore::RenderObject*); 1479 void showTree(const WebCore::RenderObject*);
1479 void showLineTree(const WebCore::RenderObject*); 1480 void showLineTree(const WebCore::RenderObject*);
1480 void showRenderTree(const WebCore::RenderObject* object1); 1481 void showRenderTree(const WebCore::RenderObject* object1);
1481 // We don't make object2 an optional parameter so that showRenderTree 1482 // We don't make object2 an optional parameter so that showRenderTree
1482 // can be called from gdb easily. 1483 // can be called from gdb easily.
1483 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1484 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1484 1485
1485 #endif 1486 #endif
1486 1487
1487 #endif // RenderObject_h 1488 #endif // RenderObject_h
OLDNEW
« Source/core/rendering/RenderBlock.cpp ('K') | « Source/core/rendering/RenderBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698