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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a complex-subtree-update test Created 5 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 * (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-2009, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2009, 2013 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void styleWillChange(StyleDifference, const ComputedStyle&) final { } 151 void styleWillChange(StyleDifference, const ComputedStyle&) final { }
152 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 152 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
153 153
154 virtual void setTextInternal(PassRefPtr<StringImpl>); 154 virtual void setTextInternal(PassRefPtr<StringImpl>);
155 virtual UChar previousCharacter() const; 155 virtual UChar previousCharacter() const;
156 156
157 void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintLayer* cu rrentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override; 157 void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintLayer* cu rrentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override;
158 158
159 virtual InlineTextBox* createTextBox(int start, unsigned short length); // S ubclassed by SVG. 159 virtual InlineTextBox* createTextBox(int start, unsigned short length); // S ubclassed by SVG.
160 160
161 void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidat ionContainer) const override; 161 void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidat ionContainer) override;
162 162
163 private: 163 private:
164 void computePreferredLogicalWidths(float leadWidth); 164 void computePreferredLogicalWidths(float leadWidth);
165 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont Data*>& fallbackFonts, FloatRect& glyphBounds); 165 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont Data*>& fallbackFonts, FloatRect& glyphBounds);
166 166
167 bool computeCanUseSimpleFontCodePath() const; 167 bool computeCanUseSimpleFontCodePath() const;
168 168
169 // Make length() private so that callers that have a LayoutText* 169 // Make length() private so that callers that have a LayoutText*
170 // will use the more efficient textLength() instead, while 170 // will use the more efficient textLength() instead, while
171 // callers with a LayoutObject* can continue to use length(). 171 // callers with a LayoutObject* can continue to use length().
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 inline LayoutText* Text::layoutObject() const 245 inline LayoutText* Text::layoutObject() const
246 { 246 {
247 return toLayoutText(CharacterData::layoutObject()); 247 return toLayoutText(CharacterData::layoutObject());
248 } 248 }
249 249
250 void applyTextTransform(const ComputedStyle*, String&, UChar); 250 void applyTextTransform(const ComputedStyle*, String&, UChar);
251 251
252 } // namespace blink 252 } // namespace blink
253 253
254 #endif // LayoutText_h 254 #endif // LayoutText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698