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

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

Issue 2683553002: Fix not autosizing ruby elements issue. (Closed)
Patch Set: 1. fix the dcheck fire when sreen ratated and add test case 2. format TextAutosizerTest Created 3 years, 10 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 * (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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool isRenderedCharacter(int offsetInNode) const; 210 bool isRenderedCharacter(int offsetInNode) const;
211 211
212 void removeAndDestroyTextBoxes(); 212 void removeAndDestroyTextBoxes();
213 213
214 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox(); 214 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox();
215 215
216 float hyphenWidth(const Font&, TextDirection); 216 float hyphenWidth(const Font&, TextDirection);
217 217
218 LayoutRect debugRect() const override; 218 LayoutRect debugRect() const override;
219 219
220 void setKnownToHaveNoOverflowAndNoFallbackFonts(bool known) {
skobes 2017/02/16 02:48:37 I'd write this as: void autosizingMultiplerChan
cathiechentx 2017/02/16 03:17:55 Done.
221 m_knownToHaveNoOverflowAndNoFallbackFonts = known;
222 }
223
220 protected: 224 protected:
221 void willBeDestroyed() override; 225 void willBeDestroyed() override;
222 226
223 void styleWillChange(StyleDifference, const ComputedStyle&) final {} 227 void styleWillChange(StyleDifference, const ComputedStyle&) final {}
224 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 228 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
225 229
226 virtual void setTextInternal(PassRefPtr<StringImpl>); 230 virtual void setTextInternal(PassRefPtr<StringImpl>);
227 virtual UChar previousCharacter() const; 231 virtual UChar previousCharacter() const;
228 232
229 void addLayerHitTestRects(LayerHitTestRects&, 233 void addLayerHitTestRects(LayerHitTestRects&,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 353
350 inline LayoutText* Text::layoutObject() const { 354 inline LayoutText* Text::layoutObject() const {
351 return toLayoutText(CharacterData::layoutObject()); 355 return toLayoutText(CharacterData::layoutObject());
352 } 356 }
353 357
354 void applyTextTransform(const ComputedStyle*, String&, UChar); 358 void applyTextTransform(const ComputedStyle*, String&, UChar);
355 359
356 } // namespace blink 360 } // namespace blink
357 361
358 #endif // LayoutText_h 362 #endif // LayoutText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698