4184 Commits

Author SHA1 Message Date
Adam Barth
7678ab5af6 Merge pull request #1147 from abarth/validate_less
ancestor is Flex assert in widgets/basic.dart
2015-09-11 15:18:50 -07:00
Adam Barth
cb59da6893 ancestor is Flex assert in widgets/basic.dart
We didn't mean to flag null ancestors for this debugging check.

Fixes #1140
2015-09-11 15:11:44 -07:00
Adam Barth
e925fbd4b4 Merge pull request #1129 from abarth/rendering_docs
Add some more docs to the rendering library
2015-09-11 15:09:53 -07:00
Adam Barth
305fb7e10f Add some more docs to the rendering library 2015-09-11 15:09:38 -07:00
Collin Jackson
78ab62249e Merge pull request #1141 from collinjackson/iterable
MultiChildRenderObjectWrapper should take an Iterable instead of a List
2015-09-11 13:57:07 -07:00
Collin Jackson
7592213df2 MultiChildRenderObjectWrapper should take an Iterable instead of a List 2015-09-11 13:35:35 -07:00
Ian Hickson
2669d95526 Merge pull request #1139 from Hixie/debug
Improve the debugging information for Widget
2015-09-11 13:27:00 -07:00
Hixie
839c054a12 Improve the debugging information for Widget
If the build stack got long before, it would get cropped.
2015-09-11 13:25:17 -07:00
Adam Barth
0bf990b64d Merge pull request #1138 from abarth/fewer_settings
Disentangle FontSize from Settings
2015-09-11 13:12:48 -07:00
Adam Barth
437cedf45e Disentangle FontSize from Settings
Instead, just store the default font sizes in statics. These statics are
constants for now, but we'll probably make them configurable at some point.
2015-09-11 12:51:27 -07:00
Andrew Wilson
4bf1485aa9 Merge pull request #1131 from apwilson/shrinkwrap
Shrink wrap when constraints are infinite.
2015-09-11 12:37:51 -07:00
Chinmay Garde
665030586e Merge pull request #1137 from chinmaygarde/master
Add options to display frame and rasterizer statistics
2015-09-11 12:31:06 -07:00
Chinmay Garde
8af5753c02 Add options to display frame and rasterizer statistics 2015-09-11 12:24:02 -07:00
Andrew Wilson
7cd2b327c6 Shrink wrap when constraints are infinite. 2015-09-11 12:12:59 -07:00
Adam Barth
9331ea8be1 Merge pull request #1128 from abarth/rm_init
Remove init.dart
2015-09-11 11:01:32 -07:00
Adam Barth
4926d91144 Merge pull request #1127 from abarth/scroll_drag
Rename scroll.dart to drag.dart
2015-09-11 10:59:10 -07:00
Adam Barth
cafcbbae1e Merge pull request #1133 from abarth/paragraph_builder
ParagraphBuilder should be able to build a paragraph
2015-09-11 10:59:02 -07:00
Adam Barth
5b7d9b7ffd Rename scroll.dart to drag.dart
The gesture is now called "drag". The library name should match.
2015-09-11 10:55:54 -07:00
Hans Muller
73963a51e6 Merge pull request #1136 from HansMuller/restore-dismissable-unit-test
Uncomment the Dismissable unit test that checks for a #1068 fix
2015-09-11 10:51:54 -07:00
Chinmay Garde
6756e0a328 Merge pull request #1135 from chinmaygarde/master
Instrument basic metrics within the compositor
2015-09-11 10:48:05 -07:00
Hans Muller
80a91dcdce Uncomment the Dismissable unit test that checks for a #1068 fix 2015-09-11 10:44:38 -07:00
Chinmay Garde
8633293b36 Instrument basic metrics within the compositor 2015-09-11 10:37:10 -07:00
Ian Hickson
8c2405575c Merge pull request #1134 from Hixie/sync
Change how we decide if two nodes can sync.
2015-09-11 10:36:25 -07:00
Hixie
c81df6f6c0 Change how we decide if two nodes can sync.
If it's a StatefulComponent, then it's ok to reuse it so long as it
hasn't been initialised.

If it's a regular Component or a TagNode, then it's always ok to reuse.

If it's a RenderObjectWrapper, then it's ok to reuse so long as it
doesn't have a renderObject.

To put it another way, this changes how we prevent the following
nonsensical situations from arising:

 - Sync two stateful StatefulComponents together
 - Sync two RenderObjectWrappers with RenderObjects together

When either of those cases happen, we just drop the old one on the
ground and use the new one unchanged.
2015-09-11 10:26:36 -07:00
Adam Barth
29ab28d922 ParagraphBuilder should be able to build a paragraph
This patch start down the road of implementing text layout and painting without
the DOM. We can construct a basic paragraph consisting of a single run of text
and we can get through layout without crashing.
2015-09-11 10:23:15 -07:00
Hans Muller
66539f5765 Merge pull request #1126 from HansMuller/more-fling
Finish converting Dismissable and Scrollable from Listener to GestureDetector

Dismissable now only depends on GestureDetector.

Added a unit test that verifies that issue #1068 has been fixed. It's commented out for now.

Cleaned up VelocityTracker.cc et al a little.
2015-09-11 09:39:58 -07:00
Hans Muller
1ed23ea92f Finish converting Dismissable from Listener to GestureDetector
Dismissable now only depends on GestureDetector.

Added a unit test that verifies that issue #1068 has been fixed. It's commented out for now.

Cleaned up VelocityTracker.cc et al a little.
2015-09-11 09:37:55 -07:00
Adam Barth
d9cde9317d Merge pull request #1130 from abarth/fix_build
Fix build after recent compositor changes
2015-09-11 09:03:01 -07:00
Adam Barth
ae42346bb5 Fix build after recent compositor changes 2015-09-11 09:02:20 -07:00
Chinmay Garde
244de91699 Merge pull request #1119 from chinmaygarde/master
Allow compositor options to be modified at runtime
2015-09-10 23:51:33 -07:00
Adam Barth
847941f420 Remove init.dart
We haven't used init.dart in several releases. We can safely remove this no-op
script now.
2015-09-10 22:03:35 -07:00
Ian Hickson
a7bbeb70f6 Fix markdown 2015-09-10 18:12:00 -07:00
Ian Hickson
d28a3e33f4 Mention Mac-specific needs for building for Android
TBR @abarth
2015-09-10 18:11:41 -07:00
Chinmay Garde
804f0c7b46 The gr_context and canvas are stored at the frame level instead of the storing the same temporarily in the context 2015-09-10 17:32:42 -07:00
Chinmay Garde
d2bd4cba15 Remove unnecessary include 2015-09-10 17:06:13 -07:00
Chinmay Garde
08da55706c Make the paint context own the rasterizer and options. Also give it the ability to vend frames to render into. 2015-09-10 16:41:54 -07:00
Adam Barth
b091101bdb Merge pull request #1124 from abarth/fix_build
Fix Linux build
2015-09-10 14:29:56 -07:00
Adam Barth
6271dbbbd1 Fix Linux build
We don't have jni on Linux.
2015-09-10 14:28:58 -07:00
mpcomplete
ea9851a1a0 Merge pull request #1123 from mpcomplete/build.fix
Fix the build
2015-09-10 17:21:54 -04:00
Matt Perry
ec47806621 rm.jni 2015-09-10 17:19:13 -04:00
Adam Barth
888b0bfb21 Merge pull request #1121 from abarth/fling_at_drag_end
Fold fling gesture into onDragEnd
2015-09-10 12:46:41 -07:00
Adam Barth
0112dcc63e Fold fling gesture into onDragEnd
That way the fling engages in the same direction as the scroll. For example, if
you have a horizontal scroll nested inside a vertical scroll, the fling will
take place in the same direction as the scroll.
2015-09-10 12:38:11 -07:00
Adam Barth
800126cc52 Merge pull request #1120 from abarth/fewer_handlers
Don't register gesture detectors when Scrollable can't scroll
2015-09-10 12:10:09 -07:00
Adam Barth
e87ae65c60 Don't register gesture detectors when Scrollable can't scroll
Previously, if you used a number of nested Blocks, they'd each try to register
drag gesture detectors even though they can't actually scroll. This CL teaches
Scrollable to watch for drag gestures only when it can actually scroll.
2015-09-10 12:03:35 -07:00
mpcomplete
2c7f0bdb9a Merge pull request #1109 from mpcomplete/version.check
Compare versions before updating an app bundle.
2015-09-10 14:19:26 -04:00
Matt Perry
2994380377 Compare versions before updating an app bundle.
The version and update URL are stored in the app's manifest (sky.yaml).
2015-09-10 14:17:58 -04:00
Chinmay Garde
ccf1ee8661 Allow compositor options to be modified at runtime 2015-09-10 11:14:19 -07:00
Adam Barth
5881fc1486 Merge pull request #1118 from abarth/rm_dart_pub_cache
Remove dart-pub-cache
2015-09-10 11:01:09 -07:00
Scott Graham
6ea6ed9224 Merge pull request #1108 from sgraham/android-home
Look in $ANDROID_HOME/platform-tools/adb too
2015-09-10 11:00:51 -07:00
Scott Graham
405eda02f8 Look in ANDROID_HOME/platform-tools/adb for adb too 2015-09-10 09:55:21 -07:00