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

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

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Support display: contents for elements, first-line and first-letter pseudos. Created 4 years, 1 month 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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
8 * (http://www.torchmobile.com/) 8 * (http://www.torchmobile.com/)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 LayoutObject* nextLayoutObject() const; 82 LayoutObject* nextLayoutObject() const;
83 bool shouldCreateLayoutObject() const; 83 bool shouldCreateLayoutObject() const;
84 ComputedStyle& style() const; 84 ComputedStyle& style() const;
85 void createLayoutObject(); 85 void createLayoutObject();
86 86
87 mutable RefPtr<ComputedStyle> m_style; 87 mutable RefPtr<ComputedStyle> m_style;
88 }; 88 };
89 89
90 class LayoutTreeBuilderForText : public LayoutTreeBuilder<Text> { 90 class LayoutTreeBuilderForText : public LayoutTreeBuilder<Text> {
91 public: 91 public:
92 LayoutTreeBuilderForText(Text& text, LayoutObject* layoutParent) 92 LayoutTreeBuilderForText(Text& text,
93 : LayoutTreeBuilder(text, layoutParent) {} 93 LayoutObject* layoutParent,
94 ComputedStyle* styleFromParent)
95 : LayoutTreeBuilder(text, layoutParent), m_style(styleFromParent) {}
94 96
97 ComputedStyle* m_style;
jfernandez 2016/10/27 17:08:02 I think we want this pointer to be reference count
95 void createLayoutObject(); 98 void createLayoutObject();
96 }; 99 };
97 100
98 } // namespace blink 101 } // namespace blink
99 102
100 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698