summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-09-09 12:00:30 +0100
committerSteve Block <steveblock@google.com>2010-09-09 12:03:51 +0100
commitbe2b5a3fe0063db46087ef38f78a1e2aa7b47631 (patch)
tree2f57576fcfed4254143647e41780e9809610c08a /WebCore
parentd8dd893d690e9d208fe4a71b7d62374687d279f4 (diff)
downloadexternal_webkit-be2b5a3fe0063db46087ef38f78a1e2aa7b47631.zip
external_webkit-be2b5a3fe0063db46087ef38f78a1e2aa7b47631.tar.gz
external_webkit-be2b5a3fe0063db46087ef38f78a1e2aa7b47631.tar.bz2
Cherry-pick security fix in WebKit change 62873
See http://trac.webkit.org/changeset/62873 Bug: 2986936 Change-Id: I8353bade3fb14aedeaa517e6bc8331cd05ee3fd8
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/editing/SelectionController.cpp3
1 files changed, 3 insertions, 0 deletions
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;