From be2b5a3fe0063db46087ef38f78a1e2aa7b47631 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 9 Sep 2010 12:00:30 +0100 Subject: Cherry-pick security fix in WebKit change 62873 See http://trac.webkit.org/changeset/62873 Bug: 2986936 Change-Id: I8353bade3fb14aedeaa517e6bc8331cd05ee3fd8 --- WebCore/editing/SelectionController.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'WebCore') diff --git a/WebCore/editing/SelectionController.cpp b/WebCore/editing/SelectionController.cpp index 5b2d0d0..f78c219 100644 --- a/WebCore/editing/SelectionController.cpp +++ b/WebCore/editing/SelectionController.cpp @@ -1339,6 +1339,9 @@ void SelectionController::updateAppearance() } #endif + // We need to update style in case the node containing the selection is made display:none. + m_frame->document()->updateStyleIfNeeded(); + RenderView* view = m_frame->contentRenderer(); if (!view) return; -- cgit v1.1