| Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| index 41591f6dceb14fca4a9e6bfaf276f4e6431a6945..d75c415acd469210e83212302da0c4557b1fb4de 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| @@ -173,7 +173,7 @@ void StyleAdjuster::adjustStyleForAlignment(ComputedStyle& style, const Computed
|
| style.setAlignSelf(parentStyle.alignItems());
|
| }
|
|
|
| -static void adjustStyleForHTMLElement(ComputedStyle& style, const ComputedStyle& parentStyle, HTMLElement& element)
|
| +static void adjustStyleForHTMLElement(ComputedStyle& style, HTMLElement& element)
|
| {
|
| // <div> and <span> are the most common elements on the web, we skip all the work for them.
|
| if (isHTMLDivElement(element) || isHTMLSpanElement(element))
|
| @@ -333,7 +333,7 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
|
| {
|
| if (style.display() != NONE) {
|
| if (element && element->isHTMLElement())
|
| - adjustStyleForHTMLElement(style, parentStyle, toHTMLElement(*element));
|
| + adjustStyleForHTMLElement(style, toHTMLElement(*element));
|
|
|
| // Per the spec, position 'static' and 'relative' in the top layer compute to 'absolute'.
|
| if (isInTopLayer(element, style) && (style.position() == StaticPosition || style.position() == RelativePosition))
|
|
|