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

Unified Diff: Source/core/rendering/RenderReplaced.cpp

Issue 369893006: Allow HTMLPlugInElement to host UA shadow DOM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 | « Source/core/rendering/RenderReplaced.h ('k') | Source/core/rendering/RenderVideo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderReplaced.cpp
diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp
index 910e32c0d028d514f75a1a59f9f6abb4398a3ab3..af3f59148114a76a61ba8c93a2e7f576ea5c031b 100644
--- a/Source/core/rendering/RenderReplaced.cpp
+++ b/Source/core/rendering/RenderReplaced.cpp
@@ -36,12 +36,12 @@
namespace blink {
-const int cDefaultWidth = 300;
-const int cDefaultHeight = 150;
+const int RenderReplaced::defaultWidth = 300;
+const int RenderReplaced::defaultHeight = 150;
RenderReplaced::RenderReplaced(Element* element)
: RenderBox(element)
- , m_intrinsicSize(cDefaultWidth, cDefaultHeight)
+ , m_intrinsicSize(defaultWidth, defaultHeight)
{
setReplaced(true);
}
@@ -94,8 +94,8 @@ void RenderReplaced::layout()
void RenderReplaced::intrinsicSizeChanged()
{
- int scaledWidth = static_cast<int>(cDefaultWidth * style()->effectiveZoom());
- int scaledHeight = static_cast<int>(cDefaultHeight * style()->effectiveZoom());
+ int scaledWidth = static_cast<int>(defaultWidth * style()->effectiveZoom());
+ int scaledHeight = static_cast<int>(defaultHeight * style()->effectiveZoom());
m_intrinsicSize = IntSize(scaledWidth, scaledHeight);
setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
}
« no previous file with comments | « Source/core/rendering/RenderReplaced.h ('k') | Source/core/rendering/RenderVideo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698