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

Unified Diff: Source/core/dom/FirstLetterPseudoElement.h

Issue 659953004: Oilpan: fix build after r183913. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/FirstLetterPseudoElement.h
diff --git a/Source/core/dom/FirstLetterPseudoElement.h b/Source/core/dom/FirstLetterPseudoElement.h
index f1a11f4eec2b75d3d7a278cc983b71e4cc4cec63..bc078cb087ea99e9c6ea60e9d26e1ce5b4bf873e 100644
--- a/Source/core/dom/FirstLetterPseudoElement.h
+++ b/Source/core/dom/FirstLetterPseudoElement.h
@@ -32,11 +32,18 @@ namespace blink {
class Element;
class RenderObject;
+class RenderTextFragment;
class FirstLetterPseudoElement final : public PseudoElement {
-WTF_MAKE_NONCOPYABLE(FirstLetterPseudoElement);
+ WTF_MAKE_NONCOPYABLE(FirstLetterPseudoElement);
public:
- static PassRefPtrWillBeRawPtr<FirstLetterPseudoElement> create(Element* parent);
+ static PassRefPtrWillBeRawPtr<FirstLetterPseudoElement> create(Element* parent)
+ {
+ return adoptRefWillBeNoop(new FirstLetterPseudoElement(parent));
+ }
+
+ virtual ~FirstLetterPseudoElement();
+ virtual void trace(Visitor*) override;
static RenderObject* firstLetterTextRenderer(const Element&);
static unsigned firstLetterLength(const String&);
@@ -51,14 +58,14 @@ public:
virtual void detach(const AttachContext& = AttachContext()) override;
private:
- FirstLetterPseudoElement(Element*);
+ explicit FirstLetterPseudoElement(Element*);
virtual void didRecalcStyle(StyleRecalcChange) override;
void attachFirstLetterTextRenderers();
RenderStyle* styleForFirstLetter(RenderObject*);
- RenderTextFragment* m_remainingTextRenderer;
+ RawPtrWillBeMember<RenderTextFragment> m_remainingTextRenderer;
bool m_needsUpdate;
};
« no previous file with comments | « no previous file | Source/core/dom/FirstLetterPseudoElement.cpp » ('j') | Source/core/rendering/RenderTextFragment.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698