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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, legendMinWi dth + borderAndPaddingWidth()); 60 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, legendMinWi dth + borderAndPaddingWidth());
61 } 61 }
62 } 62 }
63 63
64 RenderObject* RenderFieldset::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&) 64 RenderObject* RenderFieldset::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&)
65 { 65 {
66 RenderBox* legend = findLegend(); 66 RenderBox* legend = findLegend();
67 if (legend) { 67 if (legend) {
68 if (relayoutChildren) 68 if (relayoutChildren)
69 legend->setNeedsLayoutAndFullRepaint(); 69 legend->setNeedsLayoutAndFullPaintInvalidation();
70 legend->layoutIfNeeded(); 70 legend->layoutIfNeeded();
71 71
72 LayoutUnit logicalLeft; 72 LayoutUnit logicalLeft;
73 if (style()->isLeftToRightDirection()) { 73 if (style()->isLeftToRightDirection()) {
74 switch (legend->style()->textAlign()) { 74 switch (legend->style()->textAlign()) {
75 case CENTER: 75 case CENTER:
76 logicalLeft = (logicalWidth() - logicalWidthForChild(legend)) / 2; 76 logicalLeft = (logicalWidth() - logicalWidthForChild(legend)) / 2;
77 break; 77 break;
78 case RIGHT: 78 case RIGHT:
79 logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logi calWidthForChild(legend); 79 logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logi calWidthForChild(legend);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } else { 207 } else {
208 LayoutUnit xOff = (legend->x() > 0) ? LayoutUnit() : (legend->width() - borderLeft()) / 2; 208 LayoutUnit xOff = (legend->x() > 0) ? LayoutUnit() : (legend->width() - borderLeft()) / 2;
209 paintRect.expand(-xOff, 0); 209 paintRect.expand(-xOff, 0);
210 paintRect.move(xOff, 0); 210 paintRect.move(xOff, 0);
211 } 211 }
212 212
213 paintMaskImages(paintInfo, paintRect); 213 paintMaskImages(paintInfo, paintRect);
214 } 214 }
215 215
216 } // namespace WebCore 216 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ('k') | Source/core/rendering/RenderFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698