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

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

Issue 1728313003: Split ImageResourceClient into ResourceClient and ImageResourceObserver [2/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit refine. Created 4 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. 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dir tyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); } 256 void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dir tyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); }
257 257
258 // TODO(leviw): This should probably be an int. We don't snap equivalent lin es to different heights. 258 // TODO(leviw): This should probably be an int. We don't snap equivalent lin es to different heights.
259 LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const final; 259 LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const final;
260 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const final; 260 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const final;
261 261
262 void childBecameNonInline(LayoutObject* child) final; 262 void childBecameNonInline(LayoutObject* child) final;
263 263
264 void updateHitTestResult(HitTestResult&, const LayoutPoint&) final; 264 void updateHitTestResult(HitTestResult&, const LayoutPoint&) final;
265 265
266 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) final; 266 void imageChanged(bool, WrappedImagePtr, const IntRect* = nullptr) final;
267 267
268 void addAnnotatedRegions(Vector<AnnotatedRegionValue>&) final; 268 void addAnnotatedRegions(Vector<AnnotatedRegionValue>&) final;
269 269
270 void updateFromStyle() final; 270 void updateFromStyle() final;
271 271
272 LayoutInline* clone() const; 272 LayoutInline* clone() const;
273 273
274 LayoutBoxModelObject* continuationBefore(LayoutObject* beforeChild); 274 LayoutBoxModelObject* continuationBefore(LayoutObject* beforeChild);
275 275
276 LayoutObjectChildList m_children; 276 LayoutObjectChildList m_children;
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. 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.
278 }; 278 };
279 279
280 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 280 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
281 281
282 } // namespace blink 282 } // namespace blink
283 283
284 #endif // LayoutInline_h 284 #endif // LayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698