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

Unified Diff: Source/web/WebPluginContainerImpl.cpp

Issue 1157943002: Add a setNeedsLayout method to WebPluginContainer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/web/WebPluginContainerImpl.h ('k') | public/web/WebPluginContainer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginContainerImpl.cpp
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
index 7057f128c57690eb3cbadea8dd5d837515d24557..c153b9234382b7c0028e5ab7f5b5bb8d8a50520a 100644
--- a/Source/web/WebPluginContainerImpl.cpp
+++ b/Source/web/WebPluginContainerImpl.cpp
@@ -413,6 +413,12 @@ void WebPluginContainerImpl::scrollRect(const WebRect& rect)
invalidateRect(rect);
}
+void WebPluginContainerImpl::setNeedsLayout()
+{
+ if (m_element->layoutObject())
+ m_element->layoutObject()->setNeedsLayout("Plugin needs layout");
+}
+
void WebPluginContainerImpl::reportGeometry()
{
// We cannot compute geometry without a parent or layoutObject.
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | public/web/WebPluginContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698