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

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

Issue 2727853002: [css-display] Support display: contents pseudo-elements.
Patch Set: Add missing nullcheck (whoops). Created 3 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class CORE_EXPORT LayoutText : public LayoutObject { 69 class CORE_EXPORT LayoutText : public LayoutObject {
70 public: 70 public:
71 // FIXME: If the node argument is not a Text node or the string argument is 71 // FIXME: If the node argument is not a Text node or the string argument is
72 // not the content of the Text node, updating text-transform property 72 // not the content of the Text node, updating text-transform property
73 // doesn't re-transform the string. 73 // doesn't re-transform the string.
74 LayoutText(Node*, PassRefPtr<StringImpl>); 74 LayoutText(Node*, PassRefPtr<StringImpl>);
75 #if DCHECK_IS_ON() 75 #if DCHECK_IS_ON()
76 ~LayoutText() override; 76 ~LayoutText() override;
77 #endif 77 #endif
78 78
79 static LayoutText* createEmptyAnonymous(Document&);
80
79 const char* name() const override { return "LayoutText"; } 81 const char* name() const override { return "LayoutText"; }
80 82
81 virtual bool isTextFragment() const; 83 virtual bool isTextFragment() const;
82 virtual bool isWordBreak() const; 84 virtual bool isWordBreak() const;
83 85
84 virtual PassRefPtr<StringImpl> originalText() const; 86 virtual PassRefPtr<StringImpl> originalText() const;
85 87
86 void extractTextBox(InlineTextBox*); 88 void extractTextBox(InlineTextBox*);
87 void attachTextBox(InlineTextBox*); 89 void attachTextBox(InlineTextBox*);
88 void removeTextBox(InlineTextBox*); 90 void removeTextBox(InlineTextBox*);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 inline LayoutText* Text::layoutObject() const { 356 inline LayoutText* Text::layoutObject() const {
355 return toLayoutText(CharacterData::layoutObject()); 357 return toLayoutText(CharacterData::layoutObject());
356 } 358 }
357 359
358 void applyTextTransform(const ComputedStyle*, String&, UChar); 360 void applyTextTransform(const ComputedStyle*, String&, UChar);
359 AtomicString localeForLineBreakIterator(const ComputedStyle&); 361 AtomicString localeForLineBreakIterator(const ComputedStyle&);
360 362
361 } // namespace blink 363 } // namespace blink
362 364
363 #endif // LayoutText_h 365 #endif // LayoutText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698