WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28125
[Haiku] Adding ScrollbarTheme to WebCore.
https://bugs.webkit.org/show_bug.cgi?id=28125
Summary
[Haiku] Adding ScrollbarTheme to WebCore.
Maxime Simon
Reported
Sunday, August 9, 2009 1:23:21 PM UTC
Patch to add the ScrollbarThemeHaiku.* files to WebCore.
Attachments
Patch to add the ScrollbarTheme files for Haiku.
(10.42 KB, patch)
2009-08-09 05:28 PDT
,
Maxime Simon
eric
: review+
Details
Formatted Diff
Diff
Patch to add the ScrollbarTheme files for Haiku.
(10.76 KB, patch)
2009-08-11 05:27 PDT
,
Maxime Simon
no flags
Details
Formatted Diff
Diff
Patch to add the ScrollbarTheme files for Haiku.
(10.76 KB, patch)
2009-08-11 09:12 PDT
,
Maxime Simon
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Maxime Simon
Comment 1
Sunday, August 9, 2009 1:28:42 PM UTC
Created
attachment 34410
[details]
Patch to add the ScrollbarTheme files for Haiku.
Eric Seidel (no email)
Comment 2
Sunday, August 9, 2009 4:00:41 PM UTC
Comment on
attachment 34410
[details]
Patch to add the ScrollbarTheme files for Haiku. I would have written: return IntRect(scrollbar->x(), scrollbar->y(), 77 scrollbar->width() < 2 * thickness ? scrollbar->width() / 2 : thickness, thickness); 78 return IntRect(scrollbar->x(), scrollbar->y(), 79 thickness, scrollbar->height() < 2 * thickness ? scrollbar->height() / 2 : thickness); As: int buttonWidth(int scrollbarWidth, int thickness) { return scrollbarWidth < 2 * thickness ? scrollbarWidth / 2 : thickness; } IntPoint buttonOrigin(scrollbar->x(), scrollbar->y()); IntSize buttonSize = scrollbar->orientation() == HorizontalScrollbar ? IntSize(buttonWidth(scrollbar->width()), thickness) : IntSize(thickness, buttonWidth(scrollbar->width()); return IntRect(buttonOrigin, buttonSize); That way you can re-use buttonWidth() on the next function too. The code looks OK as is though.
Ryan Leavengood
Comment 3
Tuesday, August 11, 2009 3:44:45 AM UTC
Maxime, You should also add yourself above Apple in the copyright section of this code (and other code you have written or modified.) Though since Eric alread r+ this, you can make some new patches later to fix up the copyrights. Or consider also making the change Eric suggested and make a new patch. It's up to you ;)
Maxime Simon
Comment 4
Tuesday, August 11, 2009 1:27:46 PM UTC
Created
attachment 34550
[details]
Patch to add the ScrollbarTheme files for Haiku. Make some changes as suggested by Eric and Ryan, even if the previous patches was r+. I also made some style cleanup.
Maxime Simon
Comment 5
Tuesday, August 11, 2009 5:12:37 PM UTC
Created
attachment 34564
[details]
Patch to add the ScrollbarTheme files for Haiku. Sorry, the previous had a mistake. I changed scrollbar->height() to scrollbar->width(), so it didn't display correctly the back button.
Eric Seidel (no email)
Comment 6
Wednesday, August 12, 2009 6:35:15 PM UTC
Comment on
attachment 34564
[details]
Patch to add the ScrollbarTheme files for Haiku. I wouldn't have bothered to create this variable: 83 IntRect buttonRect(buttonOrigin, buttonSize); 84 85 return buttonRect; Looks fine though.
Eric Seidel (no email)
Comment 7
Wednesday, August 12, 2009 9:23:19 PM UTC
Comment on
attachment 34564
[details]
Patch to add the ScrollbarTheme files for Haiku. Clearing flags on attachment: 34564 Committing to
http://svn.webkit.org/repository/webkit/trunk
... M WebCore/ChangeLog A WebCore/platform/haiku/ScrollbarThemeHaiku.cpp A WebCore/platform/haiku/ScrollbarThemeHaiku.h Committed
r47143
M WebCore/ChangeLog A WebCore/platform/haiku/ScrollbarThemeHaiku.cpp A WebCore/platform/haiku/ScrollbarThemeHaiku.h
r47143
= 1e5acb63da2fefd1e799f6c31987d9899a34e057 (trunk) No changes between current HEAD and refs/remotes/trunk Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/47143
Eric Seidel (no email)
Comment 8
Wednesday, August 12, 2009 9:23:22 PM UTC
All reviewed patches have been landed. Closing bug.
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