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

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

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
Index: Source/core/css/resolver/StyleAdjuster.cpp
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp
index be3d89497722be5bfc7d69786a6c39b3ebb2b8a3..7db0e0651e5472114cbf5d75a5e7980ea3db9a30 100644
--- a/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/Source/core/css/resolver/StyleAdjuster.cpp
@@ -43,7 +43,6 @@
#include "core/html/HTMLTextAreaElement.h"
#include "core/layout/LayoutReplaced.h"
#include "core/layout/LayoutTheme.h"
-#include "core/style/GridPosition.h"
#include "core/style/ComputedStyle.h"
#include "core/style/ComputedStyleConstants.h"
#include "core/svg/SVGSVGElement.h"
@@ -412,16 +411,6 @@ void StyleAdjuster::adjustStyleForHTMLElement(ComputedStyle& style, const Comput
if (isHTMLPlugInElement(element)) {
style.setRequiresAcceleratedCompositingForExternalReasons(toHTMLPlugInElement(element).shouldAccelerate());
-
- // Plugins should get the standard replaced width/height instead of 'auto'.
- // Replaced layoutObjects get this for free, and fallback content doesn't count.
- if (toHTMLPlugInElement(element).usePlaceholderContent()) {
- if (style.width().isAuto())
- style.setWidth(Length(LayoutReplaced::defaultWidth, Fixed));
- if (style.height().isAuto())
- style.setHeight(Length(LayoutReplaced::defaultHeight, Fixed));
- }
-
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698