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

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

Issue 672953002: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool calculateHasBoxDecorations() const; 174 bool calculateHasBoxDecorations() const;
175 175
176 RenderBoxModelObject* continuation() const; 176 RenderBoxModelObject* continuation() const;
177 void setContinuation(RenderBoxModelObject*); 177 void setContinuation(RenderBoxModelObject*);
178 178
179 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn dentOffset); 179 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn dentOffset);
180 180
181 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; 181 bool hasAutoHeightOrContainingBlockWithAutoHeight() const;
182 182
183 public: 183 public:
184
185 // For RenderBlocks and RenderInlines with m_style->styleType() == FIRST_LET TER, this tracks their remaining text fragments
186 RenderTextFragment* firstLetterRemainingText() const;
187 void setFirstLetterRemainingText(RenderTextFragment*);
188
189 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode. 184 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode.
190 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in 185 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in
191 // the case of column spans), the default for fullRemoveInsert is false rath er than true. 186 // the case of column spans), the default for fullRemoveInsert is false rath er than true.
192 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child , RenderObject* beforeChild, bool fullRemoveInsert = false); 187 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child , RenderObject* beforeChild, bool fullRemoveInsert = false);
193 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child , bool fullRemoveInsert = false) 188 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child , bool fullRemoveInsert = false)
194 { 189 {
195 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); 190 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert);
196 } 191 }
197 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo veInsert = false) 192 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo veInsert = false)
198 { 193 {
(...skipping 17 matching lines...) Expand all
216 private: 211 private:
217 LayoutUnit computedCSSPadding(const Length&) const; 212 LayoutUnit computedCSSPadding(const Length&) const;
218 virtual bool isBoxModelObject() const override final { return true; } 213 virtual bool isBoxModelObject() const override final { return true; }
219 }; 214 };
220 215
221 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); 216 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject());
222 217
223 } // namespace blink 218 } // namespace blink
224 219
225 #endif // RenderBoxModelObject_h 220 #endif // RenderBoxModelObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698