Bug 115266 - RenderMeter::valueRatio() is private
Summary: RenderMeter::valueRatio() is private
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on: 115343
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-26 10:55 PDT by Daker Fernandes Pinheiro
Modified: 2013-04-29 13:15 PDT (History)
6 users (show)

See Also:


Attachments
Change method visibility (1.42 KB, patch)
2013-04-26 11:07 PDT, Daker Fernandes Pinheiro
no flags Details | Formatted Diff | Diff
Change method visibility with fixed ChangeLog (1.60 KB, patch)
2013-04-26 11:15 PDT, Daker Fernandes Pinheiro
no flags Details | Formatted Diff | Diff
Remove unused method RenderMeter::valueRatio() (1.79 KB, patch)
2013-04-29 10:41 PDT, Daker Fernandes Pinheiro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daker Fernandes Pinheiro 2013-04-26 10:55:20 PDT
This function is currently unused.
However, it is necessary to implement a RenderTheme capable of rendering Meter elements.
Comment 1 Daker Fernandes Pinheiro 2013-04-26 11:07:31 PDT
Created attachment 199845 [details]
Change method visibility
Comment 2 Jesus Sanchez-Palencia 2013-04-26 11:11:42 PDT
Comment on attachment 199845 [details]
Change method visibility

View in context: https://bugs.webkit.org/attachment.cgi?id=199845&action=review

> Source/WebCore/ChangeLog:8
> +        No new tests.

You should specify the reason why no new tests were needed (e.g.: "No new tests, no behavior was changed").

> Source/WebCore/rendering/RenderMeter.h:41
> +    double valueRatio() const;

Why do you need it to public? A 1-line explanation in Changelog should be enough. :)
Comment 3 Daker Fernandes Pinheiro 2013-04-26 11:15:55 PDT
Created attachment 199846 [details]
Change method visibility with fixed ChangeLog
Comment 4 WebKit Commit Bot 2013-04-26 12:08:55 PDT
Comment on attachment 199846 [details]
Change method visibility with fixed ChangeLog

Clearing flags on attachment: 199846

Committed r149203: <http://trac.webkit.org/changeset/149203>
Comment 5 WebKit Commit Bot 2013-04-26 12:08:58 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Benjamin Poulain 2013-04-28 21:59:52 PDT
What?
Please explain this change.

I could understand for <progress> but for <meter> the rendering depends on the gaugeRegion and you cannot access that from the renderer.
You must access the MeterElement to style the element correctly, and have all styling parameters available there.
Comment 7 WebKit Commit Bot 2013-04-28 22:07:48 PDT
Re-opened since this is blocked by bug 115343
Comment 8 Daker Fernandes Pinheiro 2013-04-29 07:26:04 PDT
I also though strange that it is a private method and no one was using it.
It looked to me like a forgotten piece of code.

I was using the valueRatio because is a simplest way to paint
a minimal meter element, since it already does the ratio math.

Since it looked like RenderProgress position parameter, I made it public to use it in my own style.

Since it is not used anywhere, shouldn't it be deleted?
Comment 9 Daker Fernandes Pinheiro 2013-04-29 10:41:00 PDT
Created attachment 200025 [details]
Remove unused method RenderMeter::valueRatio()
Comment 10 WebKit Commit Bot 2013-04-29 13:15:13 PDT
Comment on attachment 200025 [details]
Remove unused method RenderMeter::valueRatio()

Clearing flags on attachment: 200025

Committed r149308: <http://trac.webkit.org/changeset/149308>
Comment 11 WebKit Commit Bot 2013-04-29 13:15:15 PDT
All reviewed patches have been landed.  Closing bug.