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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Codereview update Created 4 years, 3 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. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool alwaysCreateLineBoxes() const { return alwaysCreateLineBoxesForLayoutIn line(); } 174 bool alwaysCreateLineBoxes() const { return alwaysCreateLineBoxesForLayoutIn line(); }
175 void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) { setAlways CreateLineBoxesForLayoutInline(alwaysCreateLineBoxes); } 175 void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) { setAlways CreateLineBoxesForLayoutInline(alwaysCreateLineBoxes); }
176 void updateAlwaysCreateLineBoxes(bool fullLayout); 176 void updateAlwaysCreateLineBoxes(bool fullLayout);
177 177
178 LayoutRect localCaretRect(InlineBox*, int, LayoutUnit* extraWidthToEndOfLine ) final; 178 LayoutRect localCaretRect(InlineBox*, int, LayoutUnit* extraWidthToEndOfLine ) final;
179 179
180 bool hitTestCulledInline(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset); 180 bool hitTestCulledInline(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset);
181 181
182 const char* name() const override { return "LayoutInline"; } 182 const char* name() const override { return "LayoutInline"; }
183 183
184 LayoutRect debugRect() const override;
185
184 protected: 186 protected:
185 void willBeDestroyed() override; 187 void willBeDestroyed() override;
186 188
187 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 189 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
188 190
189 void computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutPoint& l ayerOffset) const override; 191 void computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutPoint& l ayerOffset) const override;
190 192
191 void invalidateDisplayItemClients(PaintInvalidationReason) const override; 193 void invalidateDisplayItemClients(PaintInvalidationReason) const override;
192 194
193 private: 195 private:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 275
274 LayoutObjectChildList m_children; 276 LayoutObjectChildList m_children;
275 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. 277 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes.
276 }; 278 };
277 279
278 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 280 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
279 281
280 } // namespace blink 282 } // namespace blink
281 283
282 #endif // LayoutInline_h 284 #endif // LayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698