RESOLVED FIXED 31704
[chromium] Add setCaretBlinkInterval API
https://bugs.webkit.org/show_bug.cgi?id=31704
Summary [chromium] Add setCaretBlinkInterval API
Joel Stanley
Reported 2009-11-19 21:03:13 PST
With this, the gtk port of chromium will set the caret blink rate. Chromium side: http://codereview.chromium.org/398003/show
Attachments
patch (2.26 KB, patch)
2009-11-19 21:05 PST, Joel Stanley
fishd: review-
updated (8.22 KB, patch)
2010-02-02 05:13 PST, Joel Stanley
no flags
patch (8.22 KB, patch)
2010-02-02 15:16 PST, Joel Stanley
levin: review+
levin: commit-queue-
Joel Stanley
Comment 1 2009-11-19 21:05:44 PST
Evan Martin
Comment 2 2009-11-19 21:21:14 PST
(I am not a reviewer) The changelog description should probably mention what port it's for. The comment in WebView.h is probably unnecessary. LGTM otherwise
Darin Fisher (:fishd, Google)
Comment 3 2009-11-19 21:27:33 PST
Comment on attachment 43547 [details] patch > +++ b/WebKit/chromium/src/WebViewImpl.cpp ... > +void WebViewImpl::setCaretBlinkInterval(double interval) { > +#if PLATFORM(LINUX) > + reinterpret_cast<RenderThemeChromiumLinux*>(theme())->setCaretBlinkInterval(interval); > +#endif > +} theme() actually returns a singleton, so mutating this singleton via a WebView instance is a bit confusing since it would cause the value to be changed for all WebView instances. since this is Linux only, perhaps you should just create a linux specific header file in public/linux that exposes a static setter for this propery. -darin
Joel Stanley
Comment 4 2010-02-02 05:13:30 PST
Created attachment 47924 [details] updated Here is another try at this patch. Note that it doesn't pass check-webkit-style due to unnecessary indentation in WebCore/rendering/RenderThemeChromiumLinux.h, which was preexisting. I left it as is to minimise noise in the patch.
Joel Stanley
Comment 5 2010-02-02 15:16:46 PST
David Levin
Comment 6 2010-02-02 16:18:16 PST
Comment on attachment 47977 [details] patch > diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog > +2010-02-02 Joel Stanley <joel@jms.id.au> > + > + Reviewed by NOBODY (OOPS!). > + > + [Chromium] Make setCaretBlinkInterval static. This should include a bug link here like you did in the other changelog in this patch.
David Levin
Comment 7 2010-02-02 16:24:17 PST
I'll land this and do the fix suggested.
David Levin
Comment 8 2010-02-03 07:40:00 PST
Note You need to log in before you can comment on or make changes to this bug.