Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r190662 - [GTK] Progress bar is broken on recent GTK+
https://bugs.webkit.org/show_bug.cgi?id=149831 Reviewed by Carlos Garcia Campos. Source/WebCore: The gtk progress bar has been broken after bumping up to Gtk+-3.16. This is because the way of rendering progress bar changed after gtk+-3.13.7. See more https://mail.gnome.org/archives/commits-list/2014-August/msg03865.html gtk_render_activity is no longer valid to paint a progress bar on a newer gtk+. It should be done with gtk_render_background and gtk_render_frame. Test: fast/dom/HTMLProgressElement/native-progress-bar.html * rendering/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::paintProgressBar): LayoutTests: * fast/dom/HTMLProgressElement/native-progress-bar.html: Added. * platform/gtk/fast/dom/HTMLProgressElement/native-progress-bar-expected.png: Added. * platform/gtk/fast/dom/HTMLProgressElement/native-progress-bar-expected.txt: Added. * platform/mac/fast/dom/HTMLProgressElement/native-progress-bar-expected.png: Added. * platform/mac/fast/dom/HTMLProgressElement/native-progress-bar-expected.txt: Added.
- Loading branch information
1 parent
47311e8
commit c75b11c
Showing
8 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
LayoutTests/fast/dom/HTMLProgressElement/native-progress-bar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
<p>Test passes if following bars are filled 30% with a color.<p> | ||
<progress value="30" max="100"></progress><br> | ||
<progress value="30" max="100" style="-webkit-appearance:none;"></progress> |
Binary file added
BIN
+7.38 KB
...ests/platform/gtk/fast/dom/HTMLProgressElement/native-progress-bar-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
LayoutTests/platform/gtk/fast/dom/HTMLProgressElement/native-progress-bar-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x99 | ||
RenderBlock {HTML} at (0,0) size 800x99 | ||
RenderBody {BODY} at (8,16) size 784x67 | ||
RenderBlock {P} at (0,0) size 784x17 | ||
RenderText {#text} at (0,0) size 354x17 | ||
text run at (0,0) width 354: "Test passes if following bars are filled 30% with a color." | ||
RenderBlock {P} at (0,33) size 784x34 | ||
RenderProgress {PROGRESS} at (0,1) size 160x17 | ||
RenderBR {BR} at (160,0) size 0x17 | ||
RenderBlock {PROGRESS} at (0,18) size 160x17 | ||
RenderProgress {DIV} at (0,0) size 160x16 | ||
RenderBlock {DIV} at (0,0) size 160x16 [bgcolor=#808080] | ||
RenderBlock {DIV} at (0,0) size 48x16 [bgcolor=#008000] | ||
RenderText {#text} at (0,0) size 0x0 |
Binary file added
BIN
+16.6 KB
...ests/platform/mac/fast/dom/HTMLProgressElement/native-progress-bar-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
LayoutTests/platform/mac/fast/dom/HTMLProgressElement/native-progress-bar-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x105 | ||
RenderBlock {HTML} at (0,0) size 800x105 | ||
RenderBody {BODY} at (8,16) size 784x73 | ||
RenderBlock {P} at (0,0) size 784x18 | ||
RenderText {#text} at (0,0) size 360x18 | ||
text run at (0,0) width 360: "Test passes if following bars are filled 30% with a color." | ||
RenderBlock {P} at (0,34) size 784x39 | ||
RenderProgress {PROGRESS} at (0,-1) size 160x22 | ||
RenderBR {BR} at (160,3) size 0x18 | ||
RenderBlock {PROGRESS} at (0,22) size 160x17 | ||
RenderProgress {DIV} at (0,0) size 160x16 | ||
RenderBlock {DIV} at (0,0) size 160x16 [bgcolor=#808080] | ||
RenderBlock {DIV} at (0,0) size 48x16 [bgcolor=#008000] | ||
RenderText {#text} at (0,0) size 0x0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters