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

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

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 float textWidthSoFar, 277 float textWidthSoFar,
278 TextDirection, 278 TextDirection,
279 HashSet<const SimpleFontData*>* fallbackFonts, 279 HashSet<const SimpleFontData*>* fallbackFonts,
280 FloatRect* glyphBoundsAccumulation) const; 280 FloatRect* glyphBoundsAccumulation) const;
281 281
282 void secureText(UChar mask); 282 void secureText(UChar mask);
283 283
284 bool isText() const = 284 bool isText() const =
285 delete; // This will catch anyone doing an unnecessary check. 285 delete; // This will catch anyone doing an unnecessary check.
286 286
287 char objectSize() const override { return sizeof(this); }
288
287 LayoutRect localVisualRect() const override; 289 LayoutRect localVisualRect() const override;
288 290
289 void checkConsistency() const; 291 void checkConsistency() const;
290 292
291 // We put the bitfield first to minimize padding on 64-bit. 293 // We put the bitfield first to minimize padding on 64-bit.
292 294
293 // Whether or not we can be broken into multiple lines. 295 // Whether or not we can be broken into multiple lines.
294 bool m_hasBreakableChar : 1; 296 bool m_hasBreakableChar : 1;
295 // Whether or not we have a hard break (e.g., <pre> with '\n'). 297 // Whether or not we have a hard break (e.g., <pre> with '\n').
296 bool m_hasBreak : 1; 298 bool m_hasBreak : 1;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 inline LayoutText* Text::layoutObject() const { 361 inline LayoutText* Text::layoutObject() const {
360 return toLayoutText(CharacterData::layoutObject()); 362 return toLayoutText(CharacterData::layoutObject());
361 } 363 }
362 364
363 void applyTextTransform(const ComputedStyle*, String&, UChar); 365 void applyTextTransform(const ComputedStyle*, String&, UChar);
364 AtomicString localeForLineBreakIterator(const ComputedStyle&); 366 AtomicString localeForLineBreakIterator(const ComputedStyle&);
365 367
366 } // namespace blink 368 } // namespace blink
367 369
368 #endif // LayoutText_h 370 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.h ('k') | third_party/WebKit/Source/core/layout/LayoutTextCombine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698