[webkit-dev] Platform specific editing behaviors

Antonio Gomes tonikitoo at gmail.com
Wed Oct 27 14:17:58 PDT 2010


In bug https://bugs.webkit.org/show_bug.cgi?id=36627 (Needs a
"LinuxEditingBehavior", perhaps with a better name) , in order to
supply needs that the existing editing behaviors (Mac and Windows) do
not cover, we are going to add a new editing behavior type. The name
is not defined yet, and our current options are LinuxEditingBehavior,
EditingUnixBehavior, EditingFreedesktopOrgBehavior,
EditingFreedesktopBehavior or EditingXWindowsBehavior.

Well, despite the naming to be used, in the same bug I am proposing
that the editing behavior of each platform to be set according to the
OS it is running on. As an example, Chromium when built on Mac would
have the MacEditingBehavior set, while when built on Windows it would
have the Window editing behavior, etc. The same logic would apply to
all cross-platform ports, including QtWebKit. On the other hand, OS
specific ports like Apple's Mac and Windows ports would not have to
worry about it, since they just run on Mac or Windows respectively.

static EditingBehaviorType editingBehaviorTypeForPlatform()
#elif OS(UNIX)
    // Fallback

Before anything I would like to point it our here, and hear  from the
port maintainers any possible objection about it, specially from the
cross-platform ones, including Chromium and Qt.

--Antonio Gomes

More information about the webkit-dev mailing list