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

Side by Side Diff: Source/core/rendering/RenderInline.h

Issue 434453002: Promote inlines to first-class invalidation citizens (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test and expectations Created 6 years, 4 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 | Annotate | Revision Log
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 RenderObjectChildList* children() { return &m_children; } 112 RenderObjectChildList* children() { return &m_children; }
113 113
114 virtual const char* renderName() const OVERRIDE; 114 virtual const char* renderName() const OVERRIDE;
115 115
116 virtual bool isRenderInline() const OVERRIDE FINAL { return true; } 116 virtual bool isRenderInline() const OVERRIDE FINAL { return true; }
117 117
118 LayoutRect culledInlineVisualOverflowBoundingBox() const; 118 LayoutRect culledInlineVisualOverflowBoundingBox() const;
119 InlineBox* culledInlineFirstLineBox() const; 119 InlineBox* culledInlineFirstLineBox() const;
120 InlineBox* culledInlineLastLineBox() const; 120 InlineBox* culledInlineLastLineBox() const;
121 121
122 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE FINAL;
123
124 template<typename GeneratorContext> 122 template<typename GeneratorContext>
125 void generateLineBoxRects(GeneratorContext& yield) const; 123 void generateLineBoxRects(GeneratorContext& yield) const;
126 template<typename GeneratorContext> 124 template<typename GeneratorContext>
127 void generateCulledLineBoxRects(GeneratorContext& yield, const RenderInline* container) const; 125 void generateCulledLineBoxRects(GeneratorContext& yield, const RenderInline* container) const;
128 126
129 void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChil d); 127 void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChil d);
130 virtual void addChildIgnoringContinuation(RenderObject* newChild, RenderObje ct* beforeChild = 0) OVERRIDE FINAL; 128 virtual void addChildIgnoringContinuation(RenderObject* newChild, RenderObje ct* beforeChild = 0) OVERRIDE FINAL;
131 129
132 void splitInlines(RenderBlock* fromBlock, RenderBlock* toBlock, RenderBlock* middleBlock, 130 void splitInlines(RenderBlock* fromBlock, RenderBlock* toBlock, RenderBlock* middleBlock,
133 RenderObject* beforeChild, RenderBoxModelObject* oldCont); 131 RenderObject* beforeChild, RenderBoxModelObject* oldCont);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. 186 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes.
189 187
190 bool m_alwaysCreateLineBoxes : 1; 188 bool m_alwaysCreateLineBoxes : 1;
191 }; 189 };
192 190
193 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); 191 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline());
194 192
195 } // namespace blink 193 } // namespace blink
196 194
197 #endif // RenderInline_h 195 #endif // RenderInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698