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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutInline.h

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) 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
5 * All rights reserved. 5 * All rights reserved.
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const LayoutPoint& additionalOffset, 192 const LayoutPoint& additionalOffset,
193 IncludeBlockVisualOverflowOrNot) const; 193 IncludeBlockVisualOverflowOrNot) const;
194 194
195 using LayoutBoxModelObject::continuation; 195 using LayoutBoxModelObject::continuation;
196 using LayoutBoxModelObject::setContinuation; 196 using LayoutBoxModelObject::setContinuation;
197 197
198 bool alwaysCreateLineBoxes() const { 198 bool alwaysCreateLineBoxes() const {
199 return alwaysCreateLineBoxesForLayoutInline(); 199 return alwaysCreateLineBoxesForLayoutInline();
200 } 200 }
201 void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) { 201 void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) {
202 if (alwaysCreateLineBoxes)
203 m_rareStat.addReason(ReasonLICreatesLineBoxes);
202 setAlwaysCreateLineBoxesForLayoutInline(alwaysCreateLineBoxes); 204 setAlwaysCreateLineBoxesForLayoutInline(alwaysCreateLineBoxes);
203 } 205 }
204 void updateAlwaysCreateLineBoxes(bool fullLayout); 206 void updateAlwaysCreateLineBoxes(bool fullLayout);
205 207
206 LayoutRect localCaretRect(InlineBox*, 208 LayoutRect localCaretRect(InlineBox*,
207 int, 209 int,
208 LayoutUnit* extraWidthToEndOfLine) final; 210 LayoutUnit* extraWidthToEndOfLine) final;
209 211
210 bool hitTestCulledInline(HitTestResult&, 212 bool hitTestCulledInline(HitTestResult&,
211 const HitTestLocation& locationInContainer, 213 const HitTestLocation& locationInContainer,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // All of the line boxes created for this inline flow. For example, 348 // All of the line boxes created for this inline flow. For example,
347 // <i>Hello<br>world.</i> will have two <i> line boxes. 349 // <i>Hello<br>world.</i> will have two <i> line boxes.
348 LineBoxList m_lineBoxes; 350 LineBoxList m_lineBoxes;
349 }; 351 };
350 352
351 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 353 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
352 354
353 } // namespace blink 355 } // namespace blink
354 356
355 #endif // LayoutInline_h 357 #endif // LayoutInline_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698