Bug 55157 - Simplify RenderTheme::volumeSliderOffsetFromMuteButton, unduplicate code.
Summary: Simplify RenderTheme::volumeSliderOffsetFromMuteButton, unduplicate code.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Dimitri Glazkov (Google)
URL:
Keywords:
Depends on: 55152
Blocks: 53020
  Show dependency treegraph
 
Reported: 2011-02-24 09:33 PST by Dimitri Glazkov (Google)
Modified: 2011-03-03 13:12 PST (History)
5 users (show)

See Also:


Attachments
Patch (11.96 KB, patch)
2011-02-24 09:41 PST, Dimitri Glazkov (Google)
eric.carlson: review+
Details | Formatted Diff | Diff
Uses volumeSliderOffsetRelativeToMuteButton. (12.22 KB, patch)
2011-02-24 12:21 PST, Dimitri Glazkov (Google)
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitri Glazkov (Google) 2011-02-24 09:33:42 PST
Simplify RenderTheme::volumeSliderOffsetFromMuteButton, unduplicate code.
Comment 1 Dimitri Glazkov (Google) 2011-02-24 09:41:12 PST
Created attachment 83674 [details]
Patch
Comment 2 Dimitri Glazkov (Google) 2011-02-24 09:41:59 PST
I'll give the bots to cook this patch once bug 55152 patch lands.
Comment 3 Dimitri Glazkov (Google) 2011-02-24 10:55:34 PST
Comment on attachment 83674 [details]
Patch

Cook, bots, cook!
Comment 4 Eric Carlson 2011-02-24 11:43:21 PST
Comment on attachment 83674 [details]
Patch

I like the code simplification here, but I don't so much like RenderTheme::volumeSliderOffsetFromMuteButton changing to RenderTheme:: volumeSliderOffset because the new name says nothing about what the offset is relative to. Please consider a more descriptive name: volumeSliderOffsetRelativeToMuteButton, volumeSliderOffsetFromMuteButton, ...
Comment 5 Dimitri Glazkov (Google) 2011-02-24 12:21:16 PST
Created attachment 83696 [details]
Uses volumeSliderOffsetRelativeToMuteButton.
Comment 6 Dimitri Glazkov (Google) 2011-02-24 13:10:12 PST
Committed r79607: <http://trac.webkit.org/changeset/79607>
Comment 7 Dimitri Glazkov (Google) 2011-02-24 13:45:26 PST
Reverted r79607 for reason:

Broke Chromium layout tests.

Committed r79613: <http://trac.webkit.org/changeset/79613>
Comment 8 Dimitri Glazkov (Google) 2011-02-24 13:46:31 PST
(In reply to comment #7)
> Reverted r79607 for reason:
> 
> Broke Chromium layout tests.
> 
> Committed r79613: <http://trac.webkit.org/changeset/79613>

I messed up. The logic for calculating offsets wasn't the same. Need to think on this a bit more.
Comment 9 WebKit Review Bot 2011-02-24 15:59:55 PST
http://trac.webkit.org/changeset/79613 might have broken Qt Linux Release
Comment 10 Dimitri Glazkov (Google) 2011-03-03 13:12:07 PST
Went with a milder version of this refactoring instead. See bug 55099.