1414 Commits

Author SHA1 Message Date
Jason Simmons
e09af86a26
Remove image sizes from Picture::GetAllocationSize (#20673) 2020-08-21 16:26:02 -07:00
Srujan Gaddam
68b5337d34
Add null checks for CanvasElement attributes (#20580)
Changes in processing compatibility info in dart:html requires
these getters to be null-checked.
2020-08-20 15:50:01 -07:00
David Worsham
4dc866283d
fuchsia: Convert legacy permutations to build flag (#20647) 2020-08-19 19:09:51 -07:00
Dan Field
3930ac1b25
Hint freed (#19842)
* Hint the VM when a layer or picture goes out of scope
2020-08-19 14:04:31 -07:00
nturgut
93a179071f
updating editing state after location change. focusing on the element (#20620) 2020-08-19 14:03:30 -07:00
nturgut
74d32ecdbd
[web] update chrome version (#20470)
* update chrome version, should be merged after recipe changes

* changing directory to use chrome driver in LUCI

* changing directory path's order

* add cipd packages's chrome version for mac

* addressing reviewer comments

* more documentation. update readme

* remove late since it didn't build. remove distinction in paths for local and LUCI.

* addressing reviewer comments. (non-null fields needs rechanging)

* addressing reviewer comments. adding 2.6 on files missing the notation
2020-08-19 12:28:44 -07:00
Mouad Debbar
bf6d7b4e48
[web] Prepare for read-only input fields (#20520) 2020-08-18 23:11:02 -07:00
Greg Spencer
ddb85e3c47
Remove doc comments in copied web interfaces (#20494)
* Remove doc comments in copied web interfaces

* Whitespace changes to improve readability
2020-08-18 17:15:16 -07:00
Yegor
7f858aa358
rename "compositor"/"surface" to "canvaskit"/"html"; document conventions (#20579)
* rename "compositor"/"surface" to "canvaskit"/"html"; document conventions
2020-08-18 13:30:58 -07:00
nturgut
bb24b4938f
[web] Build unit tests with dart2js instead of build_runner (#20390)
* change from build_runner to dart2js

* add internalBootstrapBrowserTest to some of the tests

* add internalBootstrapBrowserTest to all remaining tests

* make tests build in paralel. Total time dropped from 586 to 177 seconds for 8 core MacBook

* change isolates with pool

* fixing analysis errors

* skipping canvaskit tests for ios-safari

* copy image files to the build directory

* adding internalBootstrapBrowserTest to newly added tests

* add internalBootstrapBrowserTest to faling path iterator test

* necessary changes to make chrome windows work

* in windows test in chrome instead of edge. our edge code was for legacy edge

* do not run golden unit tests on Windows LUCI bots for now

* addressing reviewer comments. Adding a method for deciding when to run integration tests.

* remove lines that I forgot to remove

* fixing analysis error. add issue for todo

* add bootstap to a test file

* adding bootstrap to another test

* add internalBootstrapBrowserTest to a golden test

* return test result in bat file. use archieve package to unzip

* fixing logs for chrome_installer

* use archieve and archieve entity instead of dynamic

* adding comments for windows platform archieve part

* addressing reviewer comments

* change readme file
2020-08-17 16:19:27 -07:00
Yegor
5d97d48055
use anonymous in some deletable Sk classes (#20528) 2020-08-17 11:57:12 -07:00
David Worsham
5a2bf6aa4c
Reland: "fuchsia: Remove dead code / break dependencies" (#20532)
Reland #19396 with a fix for improper scale that was affecting internal tests

Tested: Ran all unittests, ran internal tests, and ran workstation on Fuchsia
BUG: 53062, 53063
2020-08-14 20:41:18 -07:00
Jason Simmons
9993228251
Fix web_ui warnings flagged by the next Dart analyzer update (#20524) 2020-08-14 13:29:50 -07:00
xster
0c504da039
Refactor initial route code take 2 (#20468) 2020-08-13 14:18:11 -07:00
Jason Simmons
f3964186ca
Do not access members after calling ClearDartWrapper (#20465) 2020-08-13 11:06:02 -07:00
Yegor
f1855fb5a4
Clean-up CanvasKit canvas sizing. (#20387)
* Clean-up CanvasKit canvas sizing.

* cache size correctly
2020-08-13 09:21:08 -07:00
Mehmet Fidanboylu
dd2c5a1b8b
Plumbing for setting domain network policy (#20218) 2020-08-13 07:26:43 -07:00
Yegor
5c8a62608b
Delete CSS paint code (#20426)
* Delete CSS paint code
2020-08-12 14:42:34 -07:00
gaaclarke
2ac5b3460a
Revert "Refactor initial route code (#19684)" (#20450)
This reverts commit 8d08e6c369e349986831d83204a79af3fcb8d8ca.
2020-08-12 12:43:08 -07:00
Yegor
e0d515369f
Make CkVertices a ManagedSkiaObject (#20421) 2020-08-12 09:32:08 -07:00
xster
8d08e6c369
Refactor initial route code (#19684) 2020-08-11 19:52:04 -07:00
Ferhat
832e811785
[web] Add comment for clip update. (#20384) 2020-08-11 13:49:19 -07:00
Yegor
be78eba183
CanvasKit: memory management for image and shader classes (#20349)
* memory-manage images and shaders
2020-08-11 11:16:42 -07:00
Ferhat
e1f17f388f
Fix nullability warning and change registeredFonts to non-nullable (#20379)
* Fix nullability warning and change registeredFonts to non-nullable
* Renamed var
2020-08-10 17:27:26 -07:00
Ferhat
6988f01779
Add Path iterator tests, sync verbs with skia enums, fix PathIterator.peek. (#20381)
* Sync verb enum to skia. Fix PathIterator.peek, add tests
* Add constant for iterator buffer size
2020-08-10 17:24:28 -07:00
Yegor
e35fbbd90d
switch to non-overloaded arcTo methods (#20341) 2020-08-10 15:07:17 -07:00
Ming Lyu (CareF)
8b72bbcec9
remove FrameTiming named constructor (#20380) 2020-08-10 12:21:03 -07:00
Yegor
8780859f0a
remove write parameter from _checkScreenshot (#20340) 2020-08-10 08:57:37 -07:00
Mouad Debbar
02daceb261
[web] Implement support for WidgetSpan (aka paragraph placeholders) (#20276) 2020-08-08 18:10:28 -07:00
Ming Lyu (CareF)
409a5e5963
FrameTiming build start timestamp fix and add vsync start timestamp (#20229) 2020-08-07 19:41:01 -07:00
nturgut
5be470ae91
[web] Save the autofill information (#20256)
* changes for autofill. Commit save=false works. added submit button. set form actions

* save the forms on the dom

* fix tests. fix input element location. fix single element forms

* fix failing ios test. add more unit test methods for submitting the form

* address reviewer comments

* remove only the forms from the map

* remove debug line

* fix issues with login info saving. format file

* fix textarea id. fix unit tests methods

* remove debug line

* fixes flickering in safari. remove an unnecessary secind append in firefox

* address reviewer comments

* address reviewer comments
2020-08-07 13:28:50 -07:00
Yegor
0809f21392
fix clipped and transformed content in HTML clip (#20310)
* fixed clipped and transformed content in HTML clip
2020-08-07 11:28:00 -07:00
Yegor
e020907bac
Use weak references instead of resurrection, if available (#20283)
* Use weak references instead of resurrection, if available
2020-08-06 21:42:12 -07:00
Mouad Debbar
cfd852892e
[web] Eagerly calculate relevant indices during line break detection (#20278) 2020-08-06 19:29:11 -07:00
Yegor
4eaf651347
Implement our own WebGL version detection (#20306) 2020-08-06 14:04:19 -07:00
Yegor
9a5a17f378
remove leftover temp annotation from pre-null safe world (#20234)
Co-authored-by: David Iglesias <ditman@gmail.com>
2020-08-06 14:03:52 -07:00
Harry Terkelsen
0bc5fbff1a
Roll CanvasKit to 0.17.3. (#20272)
* WIP on using TypefaceFontProvider

* Support pushPaintStyle
2020-08-06 12:14:36 -07:00
Zachary Anderson
47c1c61a92
Revert "fuchsia: Remove dead code / break dependencies (#19396)" (#20302)
This reverts commit 12a37478de2cc9aff7f8fc72bc3a47f5f02e083c.
2020-08-06 12:06:06 -07:00
Ming Lyu (CareF)
8ddc5aa4fd
add a named constructor to FrameTiming (#20269) 2020-08-05 17:26:02 -07:00
Adlai Holler
3342bd05e4
Migrate a few last places to GrDirectContext (#20235)
* Migrate a few last places to GrDirectContext

This is a followup to #19962 to cover a few places where we
were still using GrContext. No functional impact.

* Formatting
2020-08-05 10:31:43 -07:00
MichealReed
06c89cd1c8
Implemented web image codec instantiation for CanvasKit. (#20194) 2020-08-04 15:01:02 -07:00
Jason Simmons
da7a54f655
Remove unnecessary breaks after returns in lib/web_ui switch statements (#20241)
These are now flagged by the Dart analyzer.
2020-08-04 14:50:44 -07:00
David Worsham
12a37478de
fuchsia: Remove dead code / break dependencies (#19396)
The fuchsia code around metrics and sizing was just sending this
information through a side-channel, when the engine already had the
information available. So, delete all of it to make future CLs simpler.

Additionally, the SceneUpdateContext has many unneccesary dependencies
re: metrics and PaintTasks. Break those to make future CLs simpler.

Tested: Ran all unittests and ran workstation on Fuchsia
BUG: 53062, 53063
2020-08-03 22:09:26 -07:00
Mouad Debbar
c6fba72b4f
[web] Include trailing spaces in text box measurements (#20208) 2020-08-03 12:38:42 -07:00
Jim Graham
22fb58b774
update nullability of drawAtlas methods and flesh out docs (#20176) 2020-07-31 17:26:02 -07:00
Greg Spencer
98cfd1db78
Move platform specific information to PlatformConfiguration class (#19652) 2020-07-31 17:21:02 -07:00
Juyeong Lee
13e993ed1a
Fix Typos (#19691) 2020-07-31 16:32:58 -07:00
Zachary Anderson
5513273d0f
Reland: Avoid a copy in EncodeImage (#20003) 2020-07-31 08:24:08 -07:00
Greg Spencer
a6cd3ebc61
Fix lint errors in lib/ui (#19988)
This fixes all of the lint errors in lib/ui, except for a few (three, I think) where it would have changed the API, converting non-const references to pointers. For those, I just did NOLINT on the particular line instead of ignoring the whole file.
2020-07-30 20:21:37 -07:00
nturgut
c134e1658d
add information collection for safari bots (#20123)
* add information collection for safari bots

* remove unused parts. add cast to fix analyze errors

* add more information. address reviwer comments

* address reviewr comments

* typo fix
2020-07-30 15:21:34 -07:00