The form control drawing will recorded as a paintRect and a callback. If the GraphicsContext is recording, the paintRect and the callback will be stored. Otherwise the callback will be called by passing the GraphicsContext and the paintRect. The callback will be a lambda expression which captures whatever it needs to draw the form control. Since the renderer outlives recording and replaying back the display list, it can be passed by reference.
I am going to enable display list drawing temporarily till the layout tests pass on all bots.
Created attachment 350487[details]
Archive of layout-test-results from ews102 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350489[details]
Archive of layout-test-results from ews113 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350494[details]
Archive of layout-test-results from ews106 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 350500[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Created attachment 350551[details]
Archive of layout-test-results from ews103 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350552[details]
Archive of layout-test-results from ews104 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 350553[details]
Archive of layout-test-results from ews116 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350555[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Created attachment 350556[details]
Archive of layout-test-results from ews113 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350619[details]
Archive of layout-test-results from ews102 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350623[details]
Archive of layout-test-results from ews116 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350629[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Created attachment 350630[details]
Archive of layout-test-results from ews117 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350632[details]
Archive of layout-test-results from ews104 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
The last patch confirms that all the layout tests pass when display list drawing is enabled except the following tests:
imported/mozilla/svg/text-layout-06.svg
fast/css/cascade/box-shadow-and-webkit-box-shadow-cascade-order.html
fast/borders/hidpi-double-border-with-border-radius-always-produce-solid-line.html
mathml/presentation/fractions-color.html
svg/canvas/canvas-global-alpha-svg.html
mathml/presentation/radical-bar-visibility.html
fast/text/simple-lines-float.html
These failures are mot related to form controls rendering. So I am going to disable display list drawing back and address these failures in a separate patch.
Created attachment 350642[details]
Archive of layout-test-results from ews100 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350645[details]
Archive of layout-test-results from ews107 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 350648[details]
Archive of layout-test-results from ews115 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350667[details]
Archive of layout-test-results from ews102 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
Created attachment 350673[details]
Archive of layout-test-results from ews116 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-sierra Platform: Mac OS X 10.12.6
2018-09-21 20:01 PDT, Said Abou-Hallawa
2018-09-21 20:59 PDT, EWS Watchlist
2018-09-21 21:10 PDT, EWS Watchlist
2018-09-21 21:39 PDT, EWS Watchlist
2018-09-22 00:20 PDT, EWS Watchlist
2018-09-22 18:43 PDT, Said Abou-Hallawa
2018-09-22 19:24 PDT, Said Abou-Hallawa
2018-09-22 20:24 PDT, Said Abou-Hallawa
2018-09-22 20:35 PDT, Said Abou-Hallawa
2018-09-22 20:41 PDT, Said Abou-Hallawa
2018-09-22 20:56 PDT, Said Abou-Hallawa
2018-09-22 21:04 PDT, Said Abou-Hallawa
2018-09-22 22:01 PDT, EWS Watchlist
2018-09-22 22:29 PDT, EWS Watchlist
2018-09-22 23:09 PDT, EWS Watchlist
2018-09-23 00:45 PDT, EWS Watchlist
2018-09-23 01:06 PDT, EWS Watchlist
2018-09-23 23:33 PDT, Said Abou-Hallawa
2018-09-24 00:44 PDT, EWS Watchlist
2018-09-24 01:40 PDT, EWS Watchlist
2018-09-24 03:10 PDT, EWS Watchlist
2018-09-24 03:37 PDT, EWS Watchlist
2018-09-24 04:59 PDT, EWS Watchlist
2018-09-24 07:59 PDT, Said Abou-Hallawa
2018-09-24 09:10 PDT, EWS Watchlist
2018-09-24 09:24 PDT, EWS Watchlist
2018-09-24 09:55 PDT, EWS Watchlist
2018-09-24 11:20 PDT, Said Abou-Hallawa
2018-09-24 12:32 PDT, EWS Watchlist
2018-09-24 13:13 PDT, EWS Watchlist
2018-09-24 15:54 PDT, Said Abou-Hallawa