OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |