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

Side by Side Diff: third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class Element; 33 class Element;
34 class LayoutObject; 34 class LayoutObject;
35 class LayoutTextFragment; 35 class LayoutTextFragment;
36 36
37 class FirstLetterPseudoElement final : public PseudoElement { 37 class FirstLetterPseudoElement final : public PseudoElement {
38 WTF_MAKE_NONCOPYABLE(FirstLetterPseudoElement); 38 WTF_MAKE_NONCOPYABLE(FirstLetterPseudoElement);
39 public: 39 public:
40 static PassRefPtrWillBeRawPtr<FirstLetterPseudoElement> create(Element* pare nt) 40 static RawPtr<FirstLetterPseudoElement> create(Element* parent)
41 { 41 {
42 return adoptRefWillBeNoop(new FirstLetterPseudoElement(parent)); 42 return new FirstLetterPseudoElement(parent);
43 } 43 }
44 44
45 ~FirstLetterPseudoElement() override; 45 ~FirstLetterPseudoElement() override;
46 46
47 static LayoutObject* firstLetterTextLayoutObject(const Element&); 47 static LayoutObject* firstLetterTextLayoutObject(const Element&);
48 static unsigned firstLetterLength(const String&); 48 static unsigned firstLetterLength(const String&);
49 49
50 void setRemainingTextLayoutObject(LayoutTextFragment*); 50 void setRemainingTextLayoutObject(LayoutTextFragment*);
51 LayoutTextFragment* remainingTextLayoutObject() const { return m_remainingTe xtLayoutObject; } 51 LayoutTextFragment* remainingTextLayoutObject() const { return m_remainingTe xtLayoutObject; }
52 52
(...skipping 11 matching lines...) Expand all
64 ComputedStyle* styleForFirstLetter(LayoutObject*); 64 ComputedStyle* styleForFirstLetter(LayoutObject*);
65 65
66 LayoutTextFragment* m_remainingTextLayoutObject; 66 LayoutTextFragment* m_remainingTextLayoutObject;
67 }; 67 };
68 68
69 DEFINE_ELEMENT_TYPE_CASTS(FirstLetterPseudoElement, isFirstLetterPseudoElement() ); 69 DEFINE_ELEMENT_TYPE_CASTS(FirstLetterPseudoElement, isFirstLetterPseudoElement() );
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // FirstLetterPseudoElement_h 73 #endif // FirstLetterPseudoElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698