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

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

Issue 217563003: Turn styleWillChange |newStyle| into a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool knownToHaveNoOverflowAndNoFallbackFonts() const { return m_knownToHaveN oOverflowAndNoFallbackFonts; } 146 bool knownToHaveNoOverflowAndNoFallbackFonts() const { return m_knownToHaveN oOverflowAndNoFallbackFonts; }
147 147
148 void removeAndDestroyTextBoxes(); 148 void removeAndDestroyTextBoxes();
149 149
150 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox(); 150 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox();
151 151
152 protected: 152 protected:
153 virtual void computePreferredLogicalWidths(float leadWidth); 153 virtual void computePreferredLogicalWidths(float leadWidth);
154 virtual void willBeDestroyed() OVERRIDE; 154 virtual void willBeDestroyed() OVERRIDE;
155 155
156 virtual void styleWillChange(StyleDifference, const RenderStyle*) OVERRIDE F INAL { } 156 virtual void styleWillChange(StyleDifference, const RenderStyle&) OVERRIDE F INAL { }
157 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 157 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
158 158
159 virtual void setTextInternal(PassRefPtr<StringImpl>); 159 virtual void setTextInternal(PassRefPtr<StringImpl>);
160 virtual UChar previousCharacter() const; 160 virtual UChar previousCharacter() const;
161 161
162 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons t OVERRIDE; 162 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons t OVERRIDE;
163 163
164 virtual InlineTextBox* createTextBox(); // Subclassed by SVG. 164 virtual InlineTextBox* createTextBox(); // Subclassed by SVG.
165 165
166 private: 166 private:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 inline void RenderText::checkConsistency() const 231 inline void RenderText::checkConsistency() const
232 { 232 {
233 } 233 }
234 #endif 234 #endif
235 235
236 void applyTextTransform(const RenderStyle*, String&, UChar); 236 void applyTextTransform(const RenderStyle*, String&, UChar);
237 237
238 } // namespace WebCore 238 } // namespace WebCore
239 239
240 #endif // RenderText_h 240 #endif // RenderText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698