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

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: Rebase to master 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); } 1008 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); }
1009 1009
1010 void clearRepaintState(); 1010 void clearRepaintState();
1011 1011
1012 // layoutDidGetCalled indicates whether this render object was re-laid-out 1012 // layoutDidGetCalled indicates whether this render object was re-laid-out
1013 // since the last call to setLayoutDidGetCalled(false) on this object. 1013 // since the last call to setLayoutDidGetCalled(false) on this object.
1014 bool layoutDidGetCalled() { return m_bitfields.layoutDidGetCalled(); } 1014 bool layoutDidGetCalled() { return m_bitfields.layoutDidGetCalled(); }
1015 void setLayoutDidGetCalled(bool b) { m_bitfields.setLayoutDidGetCalled(b); } 1015 void setLayoutDidGetCalled(bool b) { m_bitfields.setLayoutDidGetCalled(b); }
1016 1016
1017 bool mayNeedInvalidation() { return m_bitfields.mayNeedInvalidation(); } 1017 bool mayNeedInvalidation() { return m_bitfields.mayNeedInvalidation(); }
1018 void setMayNeedInvalidationNonRecursive(bool b) { m_bitfields.setMayNeedInva lidation(b); }
1018 void setMayNeedInvalidation(bool b) 1019 void setMayNeedInvalidation(bool b)
1019 { 1020 {
1020 m_bitfields.setMayNeedInvalidation(b); 1021 setMayNeedInvalidationNonRecursive(b);
1021 1022
1022 // Make sure our parent is marked as needing invalidation. 1023 // Make sure our parent is marked as needing invalidation.
1023 if (b && parent() && !parent()->mayNeedInvalidation()) 1024 if (b && parent() && !parent()->mayNeedInvalidation())
1024 parent()->setMayNeedInvalidation(b); 1025 parent()->setMayNeedInvalidation(b);
1025 } 1026 }
1026 1027
1027 bool shouldCheckForInvalidationAfterLayout() 1028 bool shouldCheckForInvalidationAfterLayout()
1028 { 1029 {
1029 return layoutDidGetCalled() || mayNeedInvalidation(); 1030 return layoutDidGetCalled() || mayNeedInvalidation();
1030 } 1031 }
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 void showTree(const WebCore::RenderObject*); 1486 void showTree(const WebCore::RenderObject*);
1486 void showLineTree(const WebCore::RenderObject*); 1487 void showLineTree(const WebCore::RenderObject*);
1487 void showRenderTree(const WebCore::RenderObject* object1); 1488 void showRenderTree(const WebCore::RenderObject* object1);
1488 // We don't make object2 an optional parameter so that showRenderTree 1489 // We don't make object2 an optional parameter so that showRenderTree
1489 // can be called from gdb easily. 1490 // can be called from gdb easily.
1490 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1491 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1491 1492
1492 #endif 1493 #endif
1493 1494
1494 #endif // RenderObject_h 1495 #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