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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Allow text as child of the LayoutView, since it can happen with display: contents Created 4 years 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 2049367d76af354817202b78d02a37dc94f97772..6d758b65e56bea9df464f28bc390db4a8f8b104b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3056,14 +3056,14 @@ PassRefPtr<ComputedStyle> LayoutObject::getUncachedPseudoStyle(
if (pseudoStyleRequest.pseudoId == PseudoIdFirstLineInherited) {
RefPtr<ComputedStyle> result =
- document().ensureStyleResolver().styleForElement(element, parentStyle,
- DisallowStyleSharing);
+ document().ensureStyleResolver().styleForElement(
+ element, parentStyle, parentStyle, DisallowStyleSharing);
result->setStyleType(PseudoIdFirstLineInherited);
return result.release();
}
return document().ensureStyleResolver().pseudoStyleForElement(
- element, pseudoStyleRequest, parentStyle);
+ element, pseudoStyleRequest, parentStyle, parentStyle);
}
PassRefPtr<ComputedStyle>

Powered by Google App Engine
This is Rietveld 408576698