WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
89264
Plumb Scrollbar button dimensions down to WebThemeEngine
https://bugs.webkit.org/show_bug.cgi?id=89264
Summary
Plumb Scrollbar button dimensions down to WebThemeEngine
Scott Graham
Reported
2012-06-15 19:05:14 PDT
[Chromium] Plumb Scrollbar button dimensions down to native_theme
Attachments
Patch
(6.51 KB, patch)
2012-06-18 12:36 PDT
,
Scott Graham
no flags
Details
Formatted Diff
Diff
Patch
(6.46 KB, patch)
2012-06-18 12:43 PDT
,
Scott Graham
no flags
Details
Formatted Diff
Diff
Patch
(6.32 KB, patch)
2012-06-18 13:25 PDT
,
Scott Graham
no flags
Details
Formatted Diff
Diff
Patch
(6.24 KB, patch)
2012-06-18 13:56 PDT
,
Scott Graham
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Scott Graham
Comment 1
2012-06-18 12:36:09 PDT
Created
attachment 148149
[details]
Patch
WebKit Review Bot
Comment 2
2012-06-18 12:41:02 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Scott Graham
Comment 3
2012-06-18 12:43:18 PDT
Created
attachment 148151
[details]
Patch
Scott Graham
Comment 4
2012-06-18 12:43:53 PDT
(Requires
https://chromiumcodereview.appspot.com/10532207/
to land on Chromium side first.)
James Robinson
Comment 5
2012-06-18 12:47:29 PDT
Comment on
attachment 148149
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148149&action=review
> Source/Platform/chromium/public/win/WebThemeEngine.h:85 > + virtual int getScrollbarArrowSize(int partId) = 0;
the rest of this file seems to juse use "int part", not partId. is there a particular reason you want this to work only for the scrollbar arrow part IDs? android and linux let you ask for the size of any part
> Source/WebCore/platform/chromium/ScrollbarThemeChromiumWin.cpp:254 > + bool horz = scrollbar->orientation() == HorizontalScrollbar; > + int standardGirth = PlatformSupport::getScrollbarArrowSize(horz ? DFCS_SCROLLLEFT : DFCS_SCROLLUP);
WebKit style is not to abbreviate variable names (and there's no column limit), so I'd expect "horz" into "horizontal"
James Robinson
Comment 6
2012-06-18 12:47:42 PDT
Comment on
attachment 148149
[details]
Patch stupid bugzilla
Scott Graham
Comment 7
2012-06-18 13:25:42 PDT
Created
attachment 148159
[details]
Patch
Scott Graham
Comment 8
2012-06-18 13:26:56 PDT
(In reply to
comment #5
)
> (From update of
attachment 148149
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=148149&action=review
> > > Source/Platform/chromium/public/win/WebThemeEngine.h:85 > > + virtual int getScrollbarArrowSize(int partId) = 0; > > the rest of this file seems to juse use "int part", not partId.
Done.
> is there a particular reason you want this to work only for the scrollbar arrow part IDs? android and linux let you ask for the size of any part
Done.
> > > Source/WebCore/platform/chromium/ScrollbarThemeChromiumWin.cpp:254 > > + bool horz = scrollbar->orientation() == HorizontalScrollbar; > > + int standardGirth = PlatformSupport::getScrollbarArrowSize(horz ? DFCS_SCROLLLEFT : DFCS_SCROLLUP); > > WebKit style is not to abbreviate variable names (and there's no column limit), so I'd expect "horz" into "horizontal"
Copied from above. I realized I was using the wrong defines anyway per
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773210(v=vs.85).aspx
so there's no distinction between horizontal/vertical anyway.
James Robinson
Comment 9
2012-06-18 13:34:32 PDT
Comment on
attachment 148159
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148159&action=review
> Source/Platform/chromium/public/win/WebThemeEngine.h:85 > + virtual int getSize(int part) = 0;
Add a comment saying what the size means and what parts it can be queried for
Scott Graham
Comment 10
2012-06-18 13:56:07 PDT
Created
attachment 148166
[details]
Patch
Scott Graham
Comment 11
2012-06-18 13:56:47 PDT
(In reply to
comment #9
)
> (From update of
attachment 148159
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=148159&action=review
> > > Source/Platform/chromium/public/win/WebThemeEngine.h:85 > > + virtual int getSize(int part) = 0; > > Add a comment saying what the size means and what parts it can be queried for
Done. Also made it a WebSize/IntSize because on writing the comment realized it made no sense to be an int.
James Robinson
Comment 12
2012-06-18 16:20:40 PDT
Comment on
attachment 148166
[details]
Patch R=me. Guessing we want to hold off on commit-queue until the chromium side lands, right?
Scott Graham
Comment 13
2012-06-18 17:37:15 PDT
(In reply to
comment #12
)
> (From update of
attachment 148166
[details]
) > R=me. Guessing we want to hold off on commit-queue until the chromium side lands, right?
Thanks. Yes, I'll ping you when this is safe to cq+.
James Robinson
Comment 14
2012-06-19 14:00:17 PDT
What chromium rev had the change? Is it rolled into Source/WebKit/chromium/DEPS in the WebKit repo yet? (I'm cautious since we don't have any cr-win EWS coverage).
Scott Graham
Comment 15
2012-06-19 15:06:32 PDT
(In reply to
comment #14
)
> What chromium rev had the change? Is it rolled into Source/WebKit/chromium/DEPS in the WebKit repo yet? (I'm cautious since we don't have any cr-win EWS coverage).
Shoot, you're right. I always forget about the backwards roll. ftr,
http://crrev.com/142993
James Robinson
Comment 16
2012-06-19 17:00:11 PDT
Comment on
attachment 148166
[details]
Patch CQ minus since
http://trac.webkit.org/browser/trunk/Source/WebKit/chromium/DEPS
shows me 142842. Set cq? when it's ahead.
Scott Graham
Comment 17
2012-06-25 10:11:17 PDT
Comment on
attachment 148166
[details]
Patch 143776 now
WebKit Review Bot
Comment 18
2012-06-25 12:48:12 PDT
Comment on
attachment 148166
[details]
Patch Clearing flags on attachment: 148166 Committed
r121176
: <
http://trac.webkit.org/changeset/121176
>
WebKit Review Bot
Comment 19
2012-06-25 12:48:21 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 20
2012-06-25 18:49:29 PDT
Re-opened since this is blocked by 89934
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