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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp

Issue 1577433003: Statistics of LayoutBox rare data reasons Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
10 * 10 *
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 m_cRow(0), 102 m_cRow(0),
103 m_outerBorderStart(0), 103 m_outerBorderStart(0),
104 m_outerBorderEnd(0), 104 m_outerBorderEnd(0),
105 m_outerBorderBefore(0), 105 m_outerBorderBefore(0),
106 m_outerBorderAfter(0), 106 m_outerBorderAfter(0),
107 m_needsCellRecalc(false), 107 m_needsCellRecalc(false),
108 m_forceSlowPaintPathWithOverflowingCell(false), 108 m_forceSlowPaintPathWithOverflowingCell(false),
109 m_hasMultipleCellLevels(false) { 109 m_hasMultipleCellLevels(false) {
110 // init LayoutObject attributes 110 // init LayoutObject attributes
111 setInline(false); // our object is not Inline 111 setInline(false); // our object is not Inline
112 m_rareStat.addReason(ReasonLTSAll);
112 } 113 }
113 114
114 LayoutTableSection::~LayoutTableSection() {} 115 LayoutTableSection::~LayoutTableSection() {}
115 116
116 void LayoutTableSection::styleDidChange(StyleDifference diff, 117 void LayoutTableSection::styleDidChange(StyleDifference diff,
117 const ComputedStyle* oldStyle) { 118 const ComputedStyle* oldStyle) {
118 DCHECK(style()->display() == EDisplay::kTableFooterGroup || 119 DCHECK(style()->display() == EDisplay::kTableFooterGroup ||
119 style()->display() == EDisplay::kTableRowGroup || 120 style()->display() == EDisplay::kTableRowGroup ||
120 style()->display() == EDisplay::kTableHeaderGroup); 121 style()->display() == EDisplay::kTableHeaderGroup);
121 122
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 transformState.flatten(); 2080 transformState.flatten();
2080 FloatRect rect = transformState.lastPlanarQuad().boundingBox(); 2081 FloatRect rect = transformState.lastPlanarQuad().boundingBox();
2081 rect.setHeight(table()->logicalHeight()); 2082 rect.setHeight(table()->logicalHeight());
2082 transformState.setQuad(FloatQuad(rect)); 2083 transformState.setQuad(FloatQuad(rect));
2083 } 2084 }
2084 return LayoutTableBoxComponent::mapToVisualRectInAncestorSpaceInternal( 2085 return LayoutTableBoxComponent::mapToVisualRectInAncestorSpaceInternal(
2085 ancestor, transformState, flags); 2086 ancestor, transformState, flags);
2086 } 2087 }
2087 2088
2088 } // namespace blink 2089 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698