Bug 207688 - [WPE] Add support for rendering progress bars
Summary: [WPE] Add support for rendering progress bars
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-13 04:42 PST by Carlos Garcia Campos
Modified: 2020-02-18 03:13 PST (History)
2 users (show)

See Also:


Attachments
Patch (6.00 KB, patch)
2020-02-13 04:43 PST, Carlos Garcia Campos
aperez: review+
Details | Formatted Diff | Diff
Patch for landing (6.01 KB, patch)
2020-02-18 02:57 PST, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2020-02-13 04:42:19 PST
.
Comment 1 Carlos Garcia Campos 2020-02-13 04:43:54 PST
Created attachment 390630 [details]
Patch
Comment 2 Adrian Perez 2020-02-17 15:28:39 PST
Comment on attachment 390630 [details]
Patch

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

Just one small nit :]

> Source/WebCore/platform/wpe/RenderThemeWPE.cpp:263
> +        fieldRect.setWidth(std::max<float>(2, fieldRect.width() / progressActivityBlocks));

Isn't two pixels a tad too narrow? Maybe it would make sense to
make it slightly wider, I think something around 5 to 6px would
be good.
Comment 3 Adrian Perez 2020-02-17 15:30:07 PST
FWIW, which other patches does this depend on? It would be nice
to have them listed in the “Depends on” field in the bug =)
Comment 4 Carlos Garcia Campos 2020-02-18 02:56:43 PST
(In reply to Adrian Perez from comment #2)
> Comment on attachment 390630 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=390630&action=review
> 
> Just one small nit :]
> 
> > Source/WebCore/platform/wpe/RenderThemeWPE.cpp:263
> > +        fieldRect.setWidth(std::max<float>(2, fieldRect.width() / progressActivityBlocks));
> 
> Isn't two pixels a tad too narrow? Maybe it would make sense to
> make it slightly wider, I think something around 5 to 6px would
> be good.

I don't think so, this is the small bar that moves left -> right -> left for indeterminate progress bars. Those 2 pixels are only used when the width of the progress bar is very small.
Comment 5 Carlos Garcia Campos 2020-02-18 02:57:49 PST
Created attachment 391037 [details]
Patch for landing
Comment 6 Carlos Garcia Campos 2020-02-18 03:13:23 PST
Committed r256824: <https://trac.webkit.org/changeset/256824>