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

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

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby 171 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby
172 172
173 virtual void dirtyLinesFromChangedChild(LayoutObject* child) override final { m_lineBoxes.dirtyLinesFromChangedChild(this, child); } 173 virtual void dirtyLinesFromChangedChild(LayoutObject* child) override final { m_lineBoxes.dirtyLinesFromChangedChild(this, child); }
174 174
175 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const override final; 175 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const override final;
176 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override final; 176 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override final;
177 177
178 virtual void childBecameNonInline(LayoutObject* child) override final; 178 virtual void childBecameNonInline(LayoutObject* child) override final;
179 179
180 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) overrid e final; 180 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&, const L ayoutRect&) override final;
181 181
182 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override fina l; 182 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override fina l;
183 183
184 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&) override fin al; 184 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&) override fin al;
185 185
186 virtual void updateFromStyle() override final; 186 virtual void updateFromStyle() override final;
187 187
188 LayoutInline* clone() const; 188 LayoutInline* clone() const;
189 189
190 LayoutBoxModelObject* continuationBefore(LayoutObject* beforeChild); 190 LayoutBoxModelObject* continuationBefore(LayoutObject* beforeChild);
191 191
192 LayoutObjectChildList m_children; 192 LayoutObjectChildList m_children;
193 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. 193 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.
194 }; 194 };
195 195
196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // LayoutInline_h 200 #endif // LayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698