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

Unified 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 3 years, 10 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/dom/LayoutTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
index 158e3618e4f73a4f52273686e6b8518849df6093..f925e19eaad721c6598d23c4b008a273ac1072f2 100644
--- a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
+++ b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.h
@@ -77,6 +77,8 @@ class LayoutTreeBuilderForElement : public LayoutTreeBuilder<Element> {
createLayoutObject();
}
+ ComputedStyle* resolvedStyle() const { return m_style.get(); }
+
private:
LayoutObject* parentLayoutObject() const;
LayoutObject* nextLayoutObject() const;
@@ -89,9 +91,12 @@ class LayoutTreeBuilderForElement : public LayoutTreeBuilder<Element> {
class LayoutTreeBuilderForText : public LayoutTreeBuilder<Text> {
public:
- LayoutTreeBuilderForText(Text& text, LayoutObject* layoutParent)
- : LayoutTreeBuilder(text, layoutParent) {}
+ LayoutTreeBuilderForText(Text& text,
+ LayoutObject* layoutParent,
+ ComputedStyle* styleFromParent)
+ : LayoutTreeBuilder(text, layoutParent), m_style(styleFromParent) {}
+ RefPtr<ComputedStyle> m_style;
void createLayoutObject();
};

Powered by Google App Engine
This is Rietveld 408576698