Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Issue 41733004: Roll up patch for running layout tests under Aura. (Closed)

Created:
7 years, 2 months ago by Dirk Pranke
Modified:
7 years, 1 month ago
Reviewers:
jamesr
CC:
blink-reviews, jamesr, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, dglazkov+blink, jchaffraix+rendering, eae, cpu_(ooo_6.6-7.5), scottmg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Roll up patch for running layout tests under Aura. This patch modifies RenderThemeChromiumDefault.cpp to be layout-test-aware and to match the way we draw the controls using the "mock theme" in the native-win code path. We also add a new implementation of the WebThemeEngine that draws the actual controls generically using Skia. With this patch, we should be able to run the layout tests under Aura and everything should pass (except for the 3 tests suppressed in the TestExpectations), but there is subsequent cleanup we should do to the code to make this more generic and remove much of the testing logic from the main rendering code. In addition, we will probably need to make a few additional changes to get this to work on Linux Aura, but not a lot. R=jamesr@chromium.org BUG=229207 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162042

Patch Set 1 #

Patch Set 2 : tests passing (w/ 3 suppressions) @160500 #

Patch Set 3 : merge forward to r161286 #

Patch Set 4 : move mock theme code from chromium to blink #

Patch Set 5 : stop modifying the Linux user style sheet, fix copyright blocks #

Patch Set 6 : fix handling of colors in layout test mode #

Patch Set 7 : hide most (?) theme functionality behind isRunningLayoutTest() #

Patch Set 8 : more cleanup #

Patch Set 9 : yet more cleanup #

Patch Set 10 : add more comments about why we have special logic for the layout tests #

Patch Set 11 : add even more comments about why we have special logic for the layout tests #

Total comments: 25

Patch Set 12 : remove ThemePainter code, add TestExpectations exceptions #

Patch Set 13 : remove distinction between hot and hover, clean up scrollbar logic #

Patch Set 14 : updated patch w/ review feedback incorporated #

Patch Set 15 : minor formatting cleanup #

Patch Set 16 : merge forward to r161579 (incl. the WebKit:: -> blink:: change #

Patch Set 17 : remove unused variables (compiler warnings/failures) #

Patch Set 18 : fix compile errors for unneeded, unininitialized vars #

Patch Set 19 : remove unneeded fgColor constant #

Patch Set 20 : Restore non-Aura behavior in default theme #

Patch Set 21 : move useMockTheme() into a helper function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+799 lines, -32 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/platform/ScrollbarThemeGtkOrAura.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +25 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumDefault.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumDefault.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 9 chunks +83 lines, -8 lines 0 comments Download
M Source/testing/runner/TestInterfaces.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -4 lines 0 comments Download
M Source/testing/runner/TestInterfaces.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -0 lines 0 comments Download
A + Source/testing/runner/WebTestThemeEngineMock.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 1 chunk +17 lines, -16 lines 0 comments Download
A Source/testing/runner/WebTestThemeEngineMock.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +627 lines, -0 lines 0 comments Download
M Source/testing/runner/runner.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M public/platform/default/WebThemeEngine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Dirk Pranke
move mock theme code from chromium to blink
7 years, 1 month ago (2013-11-05 03:15:59 UTC) #1
Dirk Pranke
argh ... ignore; this is not ready for review yet.
7 years, 1 month ago (2013-11-05 03:24:14 UTC) #2
Dirk Pranke
hide most (?) theme functionality behind isRunningLayoutTest()
7 years, 1 month ago (2013-11-06 02:12:44 UTC) #3
Dirk Pranke
Okay, this is a large patch as-is, but a lot of it is either copy/paste ...
7 years, 1 month ago (2013-11-06 21:21:36 UTC) #4
jamesr
If we're using a different WebThemeEngine in layout tests, then I don't understand all the ...
7 years, 1 month ago (2013-11-06 21:54:08 UTC) #5
Dirk Pranke
> If we're using a different WebThemeEngine in layout tests, > then I don't understand ...
7 years, 1 month ago (2013-11-06 22:29:10 UTC) #6
jamesr
https://codereview.chromium.org/41733004/diff/290001/Source/core/platform/ScrollbarThemeGtkOrAura.cpp File Source/core/platform/ScrollbarThemeGtkOrAura.cpp (right): https://codereview.chromium.org/41733004/diff/290001/Source/core/platform/ScrollbarThemeGtkOrAura.cpp#newcode123 Source/core/platform/ScrollbarThemeGtkOrAura.cpp:123: WebKit::Platform::current()->themeEngine()->paint(canvas, paintPart, state, WebKit::WebRect(rect), 0); On 2013/11/06 22:29:11, Dirk ...
7 years, 1 month ago (2013-11-06 23:16:14 UTC) #7
Dirk Pranke
https://codereview.chromium.org/41733004/diff/290001/Source/core/platform/ScrollbarThemeGtkOrAura.cpp File Source/core/platform/ScrollbarThemeGtkOrAura.cpp (right): https://codereview.chromium.org/41733004/diff/290001/Source/core/platform/ScrollbarThemeGtkOrAura.cpp#newcode123 Source/core/platform/ScrollbarThemeGtkOrAura.cpp:123: WebKit::Platform::current()->themeEngine()->paint(canvas, paintPart, state, WebKit::WebRect(rect), 0); On 2013/11/06 23:16:15, jamesr ...
7 years, 1 month ago (2013-11-06 23:46:37 UTC) #8
Dirk Pranke
Okay, I think we're getting closer. Changes since the last substantive review: I removed the ...
7 years, 1 month ago (2013-11-07 04:07:20 UTC) #9
jamesr
ok, this lgtm You'll have to fix the selection color piping soon - we don't ...
7 years, 1 month ago (2013-11-07 18:47:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpranke@chromium.org/41733004/530001
7 years, 1 month ago (2013-11-12 23:13:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpranke@chromium.org/41733004/660001
7 years, 1 month ago (2013-11-13 17:32:19 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-13 18:05:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpranke@chromium.org/41733004/790001
7 years, 1 month ago (2013-11-13 22:58:21 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=17198
7 years, 1 month ago (2013-11-14 00:31:03 UTC) #15
Dirk Pranke
7 years, 1 month ago (2013-11-14 19:19:44 UTC) #16
Message was sent while issue was closed.
Committed patchset #21 manually as r162042 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698