WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47631
Draw the find overlay holes
https://bugs.webkit.org/show_bug.cgi?id=47631
Summary
Draw the find overlay holes
Anders Carlsson
Reported
2010-10-13 15:55:53 PDT
Draw the find overlay holes
Attachments
Patch
(4.43 KB, patch)
2010-10-13 16:02 PDT
,
Anders Carlsson
sullivan
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2010-10-13 16:02:47 PDT
Created
attachment 70677
[details]
Patch
John Sullivan
Comment 2
2010-10-13 16:07:38 PDT
Comment on
attachment 70677
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=70677&action=review
See my comment above about where to put the constant definitions. I don't have a horse in that race, though.
> WebKit2/ChangeLog:10 > + Move the color component constants into overlayBackgroundColor.
I'm not sure what the style guidelines say about this. I'm used to putting all the static consts at the top of the file. It seems odd to put the color ones inside overlayBackgroundColor, but not put the shadow ones inside drawRect.
mitz
Comment 3
2010-10-13 16:10:11 PDT
Comment on
attachment 70677
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=70677&action=review
> WebKit2/WebProcess/WebPage/FindPageOverlay.cpp:92 > +static const float shadowOffsetX = 0.0; > +static const float shadowOffsetY = 1.0; > +static const float shadowBlurRadius = 2.0; > +static const float whiteFrameThickness = 1.0; > +
Please remove the “.0”s.
> WebKit2/WebProcess/WebPage/FindPageOverlay.cpp:115 > graphicsContext.fillRect(paintRect, overlayBackgroundColor(), sRGBColorSpace);
I wonder if this shouldn’t have been in device space.
> WebKit2/WebProcess/WebPage/FindPageOverlay.cpp:125 > + whiteFrameRect.inflate(1);
Did you mean to use whiteFrameThickness?
Anders Carlsson
Comment 4
2010-10-13 16:12:39 PDT
Committed
r69711
: <
http://trac.webkit.org/changeset/69711
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug