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

Side by Side Diff: Source/core/layout/LayoutFieldset.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 8 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/layout/LayoutCounter.cpp ('k') | Source/core/layout/LayoutFlowThread.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 * 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, legendMinWi dth + borderAndPaddingWidth()); 61 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, legendMinWi dth + borderAndPaddingWidth());
62 } 62 }
63 } 63 }
64 64
65 LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&) 65 LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&)
66 { 66 {
67 LayoutBox* legend = findLegend(); 67 LayoutBox* legend = findLegend();
68 if (legend) { 68 if (legend) {
69 if (relayoutChildren) 69 if (relayoutChildren)
70 legend->setNeedsLayoutAndFullPaintInvalidation(); 70 legend->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationRea son::FieldsetChanged);
71 legend->layoutIfNeeded(); 71 legend->layoutIfNeeded();
72 72
73 LayoutUnit logicalLeft; 73 LayoutUnit logicalLeft;
74 if (style()->isLeftToRightDirection()) { 74 if (style()->isLeftToRightDirection()) {
75 switch (legend->style()->textAlign()) { 75 switch (legend->style()->textAlign()) {
76 case CENTER: 76 case CENTER:
77 logicalLeft = (logicalWidth() - logicalWidthForChild(*legend)) / 2; 77 logicalLeft = (logicalWidth() - logicalWidthForChild(*legend)) / 2;
78 break; 78 break;
79 case RIGHT: 79 case RIGHT:
80 logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logi calWidthForChild(*legend); 80 logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logi calWidthForChild(*legend);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 { 142 {
143 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); 143 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset);
144 } 144 }
145 145
146 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) 146 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset)
147 { 147 {
148 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); 148 FieldsetPainter(*this).paintMask(paintInfo, paintOffset);
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutCounter.cpp ('k') | Source/core/layout/LayoutFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698