278 Commits

Author SHA1 Message Date
Miguel Beltran
d0c2418dfe
Add support for Increase Contrast on iOS (#15343) 2020-02-22 14:04:04 -08:00
Mouad Debbar
afe7968e6b
[web] Paragraph.longestLine doesn't need to check for isSingleLine anymore (#16736) 2020-02-21 13:18:09 -08:00
Mouad Debbar
136a057f28
[web] Rename LineMetrics.text to LineMetrics.displayText (#16734) 2020-02-21 13:17:59 -08:00
Nurhan Turgut
941aee35bd
[web] add comment to skipped safari test (#16737)
* add comment to skipped safari test

* test not running semantics on Mac

* disable semantics test which is unreliable
2020-02-21 13:03:29 -08:00
Nurhan Turgut
ab0dd12975
[web] Running safari tests on LUCI (#16715)
* Safari font collection tests skip failing methods

* add a clear to the semantics test to make sure no DOM elements are leaking to the other tests

* fix semantics_helper_test. skip for semantics_test. teardown didn't work

* skip test, the skipped method run for 8 minutes according to the logs

* history tests methods runs multiple times. only run them on linux for now. they were also already failing in edge/windows
2020-02-21 09:03:13 -08:00
vsmenon
0ef67b5e74
opt out dart:ui from nnbd (#16473)
* opt out dart:ui from nnbd

* Annotate tests as well
2020-02-20 11:04:00 -08:00
Mouad Debbar
8dba815a73
[web] Paragraph.getBoxesForRange uses LineMetrics (#16625) 2020-02-19 09:56:57 -08:00
Harry Terkelsen
d03582d183
URL-encode asset URLs so assets are properly loaded (#16630)
* URL-encode asset URLs so assets are properly loaded

* Add comment
2020-02-18 16:19:36 -08:00
Yegor
48d64c13e4
update hash code logic on the web (#16624) 2020-02-18 12:29:17 -08:00
Nurhan Turgut
77c5812d48
[web] Skipping failing edge tests (#16626)
* making edge default test browser on windows. adding some skips (not all) for methods failing on edge

* skip failing tests. make egde default for testing

* skip one more test

* addressing reviewer comments. removing extra bat file
2020-02-18 09:36:04 -08:00
Ferhat
15e7f51b32
Implement Path extractPath, tangent APIs (#16599)
* Add pathMeasure
* Implement tangetAt
* add extractPath segment iterator
* Implement extractPath/chopCubicAt/chopQuadAt
* Wire up extractPath and add tests for cubic/quadratic
* Switch to interpolate on chopCubic
* addressed review comments
2020-02-14 13:29:27 -08:00
Mouad Debbar
f88f7df960
[web] Unskip tests that are already passing in Safari (#16567) 2020-02-14 10:27:32 -08:00
Nurhan Turgut
65d1126778
[web] Fixing launching Safari. This should solve the LUCI issue (#16590)
* Fixing launching Safari. This should solve the LUCI issue

* more comments and linking the issue
2020-02-14 10:27:20 -08:00
Mouad Debbar
fe63094d52
[web] Handle alignment correctly in Paragraph.getPositionForOffset (#16569) 2020-02-14 10:24:13 -08:00
Ferhat
cd77e78430
Fix drawRRect failure when shader is specified (#16601) 2020-02-14 09:08:28 -08:00
Yegor
8b0b6490ee
improve surface state assert error messages (#16595) 2020-02-14 08:04:31 -08:00
Harry Terkelsen
22d08d1adc
Set the current GL context to the most recently acquired Surface (#16572) 2020-02-13 10:49:13 -08:00
Nurhan Turgut
8f8af1f890
Update felt documentation (#16559) 2020-02-12 14:05:08 -08:00
Mouad Debbar
99a265b030
[web] Fix edge cases in Paragraph.getPositionForOffset to match Flutter (#16557) 2020-02-12 13:42:52 -08:00
Nurhan Turgut
44e80fd619
skiping tests in Safari. LUCI recipe for Mac is ready. this is the only step left for stopping us running unit tests in Safari (#16550) 2020-02-11 15:31:57 -08:00
Harry Terkelsen
a662579f7c
Clear frame references at the end of every CanvasKit frame (#16525) 2020-02-10 15:30:24 -08:00
chunhtai
7e869faf52
Adds new route annoucement method. (#16523) 2020-02-10 13:59:02 -08:00
Yegor
1daba53187
Partially fix canvas vs text paint order when running on Blink/Webkit browsers (#16483)
fix canvas vs text paint order in Blink/Webkit
2020-02-10 13:41:50 -08:00
Harry Terkelsen
acc26a2f1c
Use Skia to determine "actual" font name in CanvasKit backend (#16504)
* Use Skia to determine "actual" font name.

This way, we don't need to hard-code a mapping of Flutter names
to actual names, we can compute it when the font is registered.

* Refactor to only have loaded and unloaded fonts
2020-02-10 13:06:30 -08:00
Michael Goderbauer
e4f46f32f1
Doc fixes in BoxHeightStyle (#16424) 2020-02-07 13:41:50 -08:00
sjindel-google
c9322145f4
Ensure fields of Rect and OffsetBase classes are optimized as non-null. (#16465)
* Ensure fields of Rect and OffsetBase classes are optimized as non-null.

* Update web_ui and formatting
2020-02-07 19:06:20 +01:00
Harry Terkelsen
00904dd967
Various fixes in CanvasKit (#16433)
- Enable dynamically loaded fonts
- Fix addOval
- Fix getBoxesForRange for negative ranges
2020-02-06 14:51:12 -08:00
Ferhat
f3ce90e938
Reset width/height before deallocation for Safari allocation bug. (#16469) 2020-02-06 12:30:27 -08:00
Mouad Debbar
41d50c220b
Reland #16206: "[web] Correct getPositionForOffset for multi-line paragraphs" (#16365) 2020-02-05 19:53:03 -08:00
Yegor
07f25c51ee
fix bad reference to maxDiffRatePercent (#16440)
* fix bad reference to maxDiffRatePercent

* back to 10%
2020-02-05 18:49:10 -08:00
Yegor
f34bc65bee
use percent for golden diff rates; tighten the values (#16430) 2020-02-05 15:53:45 -08:00
Ferhat
8f89bac4b7
[web] Fixes incorrect transform when context save and transforms are deferred. (#16412)
* Fix transform order in clipStack replay
2020-02-05 15:02:34 -08:00
vsmenon
8c6cc65cd0
Fix runtime type errors when running with canvaskit (#16312)
* fix runtime type errors when running with canvaskit
2020-02-04 10:32:51 -08:00
Mouad Debbar
036ddbb0ee
[web][felt] If full dart-sdk isn't available, install it (#16341) 2020-02-03 15:06:24 -08:00
Yegor
804dca62a1
Use bundled Roboto in all tests (#16218)
* Use bundled Roboto in all tests
2020-01-30 17:31:32 -08:00
Jason Simmons
1370c9d520
Revert "[web] Correct getPositionForOffset for multi-line paragraphs (#16206)" (#16268)
This reverts commit 4ac82f663170a8740c3d983c97fee42d2f3425d2.

This caused a regression in a framework test (material/text_field_splash_test.dart)
2020-01-30 16:06:35 -08:00
Mouad Debbar
4ac82f6631
[web] Correct getPositionForOffset for multi-line paragraphs (#16206) 2020-01-30 10:21:15 -08:00
Gary Qian
ee297aa699
Reland "Engine/LibTxt/dart:ui impl of TextHeightBehavior #15087" (#16155) 2020-01-29 10:52:24 -08:00
Mouad Debbar
379295626d
[web] Text width should never exceed constraint width (#16152) 2020-01-28 16:23:04 -08:00
Dan Field
53baa7aee5
Revert breaking PRs (#16148)
* Revert "Web PargraphStyle TextHeightBehavior integration (#16075)"

This reverts commit 86682a2d09e7d111a5c4fd2156b9971bd65fb693.

* Revert "Engine/LibTxt/dart:ui impl of TextHeightBehavior (#15087)"

This reverts commit cbf4536d158e25e372469c242e326c48cc730de7.
2020-01-28 10:40:05 -08:00
Gary Qian
86682a2d09
Web PargraphStyle TextHeightBehavior integration (#16075) 2020-01-27 17:35:40 -08:00
Gary Qian
cbf4536d15
Engine/LibTxt/dart:ui impl of TextHeightBehavior (#15087) 2020-01-27 13:37:11 -08:00
Ferhat
f30ff4fcbf
Use 2d matrix for transform to work around Safari clipping bug (#15976) 2020-01-24 20:40:12 -08:00
Nurhan Turgut
2415e9654b
updating the versions of the browsers for flutter web engine unit tests (#15977) 2020-01-24 16:28:21 -08:00
Nurhan Turgut
08d1f2af9f
[web] Calling platform message callback after copy (#15950)
* Calling platform message callback after copy

* addressing pr comments

* adding unit tests to clipbpard.dart
2020-01-24 15:35:03 -08:00
Yegor
f43097215c
Cache computed window.physicalSize in a FrameReference (#15955) 2020-01-24 13:21:16 -08:00
Dan Field
89f3471fa7
the the fix (#15973) 2020-01-24 12:43:32 -08:00
Ferhat
b22821a542
Optimize drawRRect to use dom_canvas (#15970) 2020-01-24 11:03:19 -08:00
Ferhat
2ce15cf956
Remove paint apply in draw image (#15969)
https://github.com/flutter/flutter/issues/49132
2020-01-24 10:39:54 -08:00
Ferhat
3d5bbb4371
Implement Canvas drawPoints API for Html backend (#15870) 2020-01-21 16:37:41 -08:00