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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.h

Issue 2754653002: Cleanup anonymous text objects that pass the document as a node. (Closed)
Patch Set: Cleanup anonymous text objects that pass the document as a node. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutTextFragment.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
index fb68a53d2861596e71710f397ddbd3212a86127a..ea1b4d4bfa4593ed287432cf11cfebd50d474fc9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
@@ -43,6 +43,12 @@ class LayoutTextFragment final : public LayoutText {
LayoutTextFragment(Node*, StringImpl*);
~LayoutTextFragment() override;
+ static LayoutTextFragment* createAnonymous(PseudoElement&, StringImpl*);
+ static LayoutTextFragment* createAnonymous(PseudoElement&,
+ StringImpl*,
+ unsigned start,
+ unsigned length);
+
bool isTextFragment() const override { return true; }
bool canBeSelectionLeaf() const override {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698