, m_inputEventsScaleFactorForEmulation(1)
, m_layoutSizeFixedToFrameSize(true)
, m_didScrollTimer(this, &FrameView::didScrollTimerFired)
+ , m_needsUpdateWidgetPositions(false)
{
ASSERT(m_frame);
init();
ScrollView::paintOverhangAreas(context, horizontalOverhangArea, verticalOverhangArea, dirtyRect);
}
+void FrameView::updateWidgetPositionsIfNeeded()
+{
+ if (!m_needsUpdateWidgetPositions)
+ return;
+
+ m_needsUpdateWidgetPositions = false;
+
+ updateWidgetPositions();
+}
+
void FrameView::updateLayoutAndStyleForPainting()
{
// Updating layout can run script, which can tear down the FrameView.
updateLayoutAndStyleIfNeededRecursive();
+ updateWidgetPositionsIfNeeded();
+
if (RenderView* view = renderView()) {
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "UpdateLayerTree", "frame", m_frame.get());
// FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeline migrates to tracing.