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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGTitleElement.h

Issue 1752713002: Fix SVGDocument return title that is not a child of the root element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 12 matching lines...) Expand all
23 23
24 #include "core/svg/SVGElement.h" 24 #include "core/svg/SVGElement.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class SVGTitleElement final : public SVGElement { 28 class SVGTitleElement final : public SVGElement {
29 DEFINE_WRAPPERTYPEINFO(); 29 DEFINE_WRAPPERTYPEINFO();
30 public: 30 public:
31 DECLARE_NODE_FACTORY(SVGTitleElement); 31 DECLARE_NODE_FACTORY(SVGTitleElement);
32 32
33 void setText(const String&);
34
33 private: 35 private:
34 explicit SVGTitleElement(Document&); 36 explicit SVGTitleElement(Document&);
35 37
36 InsertionNotificationRequest insertedInto(ContainerNode*) override; 38 InsertionNotificationRequest insertedInto(ContainerNode*) override;
37 void removedFrom(ContainerNode*) override; 39 void removedFrom(ContainerNode*) override;
38 void childrenChanged(const ChildrenChange&) override; 40 void childrenChanged(const ChildrenChange&) override;
39 41
40 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; } 42 bool layoutObjectIsNeeded(const ComputedStyle&) override { return false; }
43
44 bool m_ignoreTitleUpdatesWhenChildrenChange;
41 }; 45 };
42 46
43 } // namespace blink 47 } // namespace blink
44 48
45 #endif // SVGTitleElement_h 49 #endif // SVGTitleElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTitleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698