[GTK] Crash in WebCore::SelectionRangeData::apply
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Oct 2017 07:04:51 +0000 (07:04 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Oct 2017 07:04:51 +0000 (07:04 +0000)
commit7531b05f8be4d0b5eb0b815660fffdb0550bf69a
treefe3652905aca9539bd897f2156811c992a405881
parentdc2e123e4ecd02bead24794ae0eea7a448cec655
[GTK] Crash in WebCore::SelectionRangeData::apply
https://bugs.webkit.org/show_bug.cgi?id=177808

Reviewed by Carlos Garcia Campos.

The problem appears to be a name collision between WebCore::SelectionData and
WebCore::SelectionData. Yes, those are the same names. It seems the destructor for a
Source/WebCore/platform/gtk/SelectionData.h SelectionData is being called on a
Source/WebCore/rendering/SelectionRangeData.cpp SelectionData. Yikes. Can you forgive the
poor linker for not being magic?

This fixes crashes in approximately one bajillion tests.

* rendering/SelectionRangeData.cpp: Move SelectionData into an anonymous namespace.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/SelectionRangeData.cpp