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

Side by Side Diff: Source/core/rendering/RenderDeprecatedFlexibleBox.cpp

Issue 264963004: Mark when we may have been invalidated to early out on repaintTreeAfterLayout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: With expectations. 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
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderFlexibleBox.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 * This file is part of the render object implementation for KHTML. 2 * This file is part of the render object implementation for KHTML.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) 5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * Copyright (C) 2003 Apple Computer, Inc. 6 * Copyright (C) 2003 Apple Computer, Inc.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 toRenderBlock(child)->clearTruncation(); 992 toRenderBlock(child)->clearTruncation();
993 } 993 }
994 } 994 }
995 } 995 }
996 } 996 }
997 997
998 void RenderDeprecatedFlexibleBox::placeChild(RenderBox* child, const LayoutPoint & location) 998 void RenderDeprecatedFlexibleBox::placeChild(RenderBox* child, const LayoutPoint & location)
999 { 999 {
1000 LayoutRect oldRect = child->frameRect(); 1000 LayoutRect oldRect = child->frameRect();
1001 1001
1002 // FIXME Investigate if this can be removed based on other flags. crbug.com/ 370010
1003 child->setMayNeedInvalidation(true);
1004
1002 // Place the child. 1005 // Place the child.
1003 child->setLocation(location); 1006 child->setLocation(location);
1004 1007
1005 // If the child moved, we have to repaint it as well as any floating/positio ned 1008 // If the child moved, we have to repaint it as well as any floating/positio ned
1006 // descendants. An exception is if we need a layout. In this case, we know we're going to 1009 // descendants. An exception is if we need a layout. In this case, we know we're going to
1007 // repaint ourselves (and the child) anyway. 1010 // repaint ourselves (and the child) anyway.
1008 if (!selfNeedsLayout() && child->checkForRepaintDuringLayout()) 1011 if (!selfNeedsLayout() && child->checkForRepaintDuringLayout())
1009 child->repaintDuringLayoutIfMoved(oldRect); 1012 child->repaintDuringLayoutIfMoved(oldRect);
1010 } 1013 }
1011 1014
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 if (isPseudoElement()) 1081 if (isPseudoElement())
1079 return "RenderDeprecatedFlexibleBox (generated)"; 1082 return "RenderDeprecatedFlexibleBox (generated)";
1080 if (isAnonymous()) 1083 if (isAnonymous())
1081 return "RenderDeprecatedFlexibleBox (generated)"; 1084 return "RenderDeprecatedFlexibleBox (generated)";
1082 if (isRelPositioned()) 1085 if (isRelPositioned())
1083 return "RenderDeprecatedFlexibleBox (relative positioned)"; 1086 return "RenderDeprecatedFlexibleBox (relative positioned)";
1084 return "RenderDeprecatedFlexibleBox"; 1087 return "RenderDeprecatedFlexibleBox";
1085 } 1088 }
1086 1089
1087 } // namespace WebCore 1090 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698