[webkit-reviews] review denied: [Bug 129263] WebKitFindOptions shouldn't expose WEBKIT_FIND_OPTIONS_SHOW_{OVERLAY, FIND_INDICATOR, HIGHLIGHT} : [Attachment 225079] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 25 09:14:10 PST 2014


Sergio Villar Senin <svillar at igalia.com> has denied Enrique Ocaña
<eocanha at igalia.com>'s request for review:
Bug 129263: WebKitFindOptions shouldn't expose
WEBKIT_FIND_OPTIONS_SHOW_{OVERLAY,FIND_INDICATOR,HIGHLIGHT}
https://bugs.webkit.org/show_bug.cgi?id=129263

Attachment 225079: Patch
https://bugs.webkit.org/attachment.cgi?id=225079&action=review

------- Additional Comments from Sergio Villar Senin <svillar at igalia.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=225079&action=review


Almost there. I'd suggest some changes tough.

> Source/WebKit2/ChangeLog:7
> +

You still need a short description of the problem/fix here even if you add
specific comments per file.

> Source/WebKit2/UIProcess/API/gtk/WebKitFindController.cpp:99
> +

I don't see the point of having two functions. Let's just have the one
receiving a uint32_t and let it do all the conversion, we don't need an extra
cast and a function call (even if it's inline)

> Source/WebKit2/UIProcess/API/gtk/WebKitFindController.cpp:112
>  }

Same here, I think we only use the second one, so let's keep that and move the
implementation of the conversion there.

> Source/WebKit2/UIProcess/API/gtk/WebKitFindController.cpp:433
> +    webKitFindControllerSetSearchData(findController, searchText,
toFindOptions(static_cast<WebKitFindOptions>(findOptions)), maxMatchCount);

Just call the uint32_t version, you don't need the cast.

> Source/WebKit2/UIProcess/API/gtk/WebKitFindController.cpp:490
> +    webKitFindControllerSetSearchData(findController, searchText,
toFindOptions(static_cast<WebKitFindOptions>(findOptions)), maxMatchCount);

Ditto.


More information about the webkit-reviews mailing list