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

Unified Diff: Source/core/dom/Fullscreen.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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/dom/Fullscreen.h ('k') | Source/core/dom/LayoutTreeBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Fullscreen.cpp
diff --git a/Source/core/dom/Fullscreen.cpp b/Source/core/dom/Fullscreen.cpp
index 3e50b8c9e708925adb764dba88cc22b00175fb55..645d34429e535476ac881ec4e0e52d0ae8736ba2 100644
--- a/Source/core/dom/Fullscreen.cpp
+++ b/Source/core/dom/Fullscreen.cpp
@@ -434,7 +434,7 @@ void Fullscreen::didEnterFullScreenForElement(Element* element)
bool shouldCreatePlaceholder = renderer && renderer->isBox();
if (shouldCreatePlaceholder) {
m_savedPlaceholderFrameRect = toLayoutBox(renderer)->frameRect();
- m_savedPlaceholderLayoutStyle = LayoutStyle::clone(renderer->styleRef());
+ m_savedPlaceholderComputedStyle = ComputedStyle::clone(renderer->styleRef());
}
if (m_fullScreenElement != document()->documentElement())
@@ -490,11 +490,11 @@ void Fullscreen::setFullScreenRenderer(LayoutFullScreen* renderer)
if (renderer == m_fullScreenRenderer)
return;
- if (renderer && m_savedPlaceholderLayoutStyle) {
- renderer->createPlaceholder(m_savedPlaceholderLayoutStyle.release(), m_savedPlaceholderFrameRect);
+ if (renderer && m_savedPlaceholderComputedStyle) {
+ renderer->createPlaceholder(m_savedPlaceholderComputedStyle.release(), m_savedPlaceholderFrameRect);
} else if (renderer && m_fullScreenRenderer && m_fullScreenRenderer->placeholder()) {
LayoutBlock* placeholder = m_fullScreenRenderer->placeholder();
- renderer->createPlaceholder(LayoutStyle::clone(placeholder->styleRef()), placeholder->frameRect());
+ renderer->createPlaceholder(ComputedStyle::clone(placeholder->styleRef()), placeholder->frameRect());
}
if (m_fullScreenRenderer)
« no previous file with comments | « Source/core/dom/Fullscreen.h ('k') | Source/core/dom/LayoutTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698