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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp

Issue 2290623002: Removed unused parentStyle in StyleAdjuster. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698