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

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: 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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 68baec2858e10ef18b15fd7e1892c1b891a5824f..cdc5af4d8a2cede6fc2639df351ec74e58004d7f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3046,14 +3046,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