1442 Commits

Author SHA1 Message Date
Eric Seidel
afaac6ec79 Remove our impressive amount of CSS Cursor code.
With this gone, cursors will no longer change
on hover when running Sky on a desktop.

Then again the iGeneration doesn't
probably even know what a mouse is, let alone
have a burning desire to set a CSS3 custom-cursor.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1076623002
2015-04-08 14:23:13 -07:00
Eric Seidel
64e97bbea8 remove CSS 'all' property.
The human mind is simply not capable of beholding the
sheer power of the CSS 'all' property.  We shall remove it
now and leave its echo for generations to contemplate.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1068393002
2015-04-08 13:39:47 -07:00
Eric Seidel
1381402a70 Remove obsolete CSSProperties.in -webkit- aliases.
Just writing a C++ patch for a change to feel productive. :)

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1072613002
2015-04-08 13:31:27 -07:00
Ojan Vafai
3029d211d7 Fix ink splashes in stocks app.
https://codereview.chromium.org/1061163002 lost the default
value of stretch for align-items on flex boxes. We used to
have complicated rules where only flex boxes would default to
stretch. Now that we only have flex boxes, we can just make
it the default in RenderStyle.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1076543002
2015-04-08 12:27:49 -07:00
Eric Seidel
5a8da4db70 Update test expectations
This test was failing because I changed the url.
The new url is correct.  Sorry for not running the tests
before committing.

https://codereview.chromium.org/1065073002/
https://github.com/domokit/mojo/issues/81
TBR=ojan@chromium.org

Review URL: https://codereview.chromium.org/1075603002
2015-04-08 12:25:07 -07:00
Tony Gentilcore
05c7de2f4a Disable sky/tests/framework/basic.sky due to issue #81
TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1063233003
2015-04-07 17:53:11 -07:00
Ojan Vafai
b9df2edb7d Delete RenderBlockFlow.
We only ever create RenderParagraphs now. The only non-trivial change here
is making RenderView a RenderFlexibleBox. This required changing custom.sky.
That test was written in a fragile way that behaved differently if we
did multiple layouts. Instead, having it be less racy and only change
values during the test itself.

This also throws a wrench in moving all the layout code to dart
because we can't set the layout manager on the RenderView. Maybe
we need to explicitly let you do so.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1068683002
2015-04-07 16:59:36 -07:00
Eric Seidel
cb473bbf48 Attempt to de-flake tests/framework/basic.sky
new Image() is likely to cause the image to try
and load as soon as the underlying Image element
is inserted into the real DOM.

This at least points it at a real image so that
it won't dump 404 response text into the test
output if the image load kicks off before the test
completes.

Example:
http://build.chromium.org/p/client.mojo/builders/Mojo%20Linux%20NaCl/builds/1130/steps/Sky%20tests/logs/stdio

R=ianh@google.com, ojan@chromium.org

Review URL: https://codereview.chromium.org/1065073002
2015-04-07 15:53:19 -07:00
Eric Seidel
9d26851ecb Fix sky_tool's calling of adb, and shelldb's analyze and stop
Just silly fixes needed for our 4 copies of our python run script.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1064983003
2015-04-07 15:15:56 -07:00
Hixie
97ed9fdd7d [Effen] rename RenderNode and WrapperNode (previously know as Element) to SkyNodeWrapper and SkyElementWrapper to avoid confusion with C++ RenderNode objects
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1066093003
2015-04-07 14:12:32 -07:00
John McCutchan
ee061ddf28 - Rename "nodefer" to "immediate" (gets rid of double negative in "nodefer: false").
- Immediate close means that anything pending will be discarded.
- Plumb immediate all the way down to the handle watcher close call.
- When an EventStream is closed because no one is listening for events, close immediately.
- Don't call Dart_NewSendPort with ILLEGAL_PORT in sky embedder.
- Bump DEPS to include fixes for Dart_NewSendPort and profiler signal handler executing after shared object is unloaded.
- Fixes https://github.com/domokit/mojo/issues/79

R=zra@google.com

Review URL: https://codereview.chromium.org/1060193002
2015-04-07 12:59:58 -07:00
Eric Seidel
e8140cd33f Unbreak widgets_app.dart (by disabling PopupMenu for now)
Also fix button.dart to include ink_well.dart.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1058013003
2015-04-07 11:17:26 -07:00
Ojan Vafai
970f42b8d7 Remove parsing for display:block/inline-block.
The default is now column flexboxes, which are almost the
same as blocks.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1060223002
2015-04-06 19:19:36 -07:00
Ojan Vafai
88f38ce0e6 Remove all uses of display:block and display:inline-block.
-Make display:flex, flex-direction: column, flex-shrink: 1 the default.
-Simplify StyleAdjuster::adjustStyleForAlignment to remove special cases we
won't need as we make flex the default and remove absolute positioning.
-Fix a bug this exposed in column flexboxes where we'd apply the wrong edge
of border/padding/margin.
-For now leave the default of align-items:stretch. The main change here is
that iframe/img will do width:auto the same as blocks (i.e. the width of
the parent). I think this is a good change, but we'll have to see how it feels
in practice.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1061163002
2015-04-06 16:44:12 -07:00
James Robinson
8570f4fbdb Teach skydb about the --trace-startup flag
This flag to mojo_shell is gaining the ability to produce tracing info
starting very early in process startup. This allows the skydb 'start'
command to pass this command through to mojo_shell.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1065723003
2015-04-06 16:14:33 -07:00
Ojan Vafai
6bfa21b190 Make custom layout actually work.
-Temporarily add setting override width as well so that we correctly bypass in RenderBox::computeLogicalWidth.
-Add setNeedsLayout so that the author code can force layouts (e.g. when the container's width changes).
-Have setLayoutManager force a reattach of the element if it's renderer wasn't a custom layout one before.
-Remove the laying out of children from RenderCustomLayout::layout. This is the job of the author code.
-Add a test case.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1055263002
2015-04-06 12:53:35 -07:00
Ojan Vafai
4fb43c315a Remove the x,y,width,height methods from HTMLImageElement.
They've already been removed from the idl.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1055323002
2015-04-06 11:39:48 -07:00
Mitch Rudominer
8c084e1db9 Replaces |shell_handle| with |application_request| as the name of the parameter to MojoMain().
BUG=468496
R=viettrungluu@chromium.org, viettrungluu

Review URL: https://codereview.chromium.org/1058163002
2015-04-03 08:22:46 -07:00
Ojan Vafai
ef34102c3b Revert "Revert "First iteration on custom layout.""
This reverts commit 44cf3b689cda2632fa649e2cd3fdbfcb7174f352.
https://codereview.chromium.org/1060443002 fixes the cause
of the test breakage.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1055243002
2015-04-02 15:17:10 -07:00
Ojan Vafai
7e1ca8fc6f Remove x,y,width,height from HTMLImageElement.
This conflicts with adding them to HTMLElement for custom layout.
I grepped the codebase and couldn't find any uses of these. The
big thing we lose here is a way to set width/height on an image
that automatically maintains aspect ratio, but that's something
we should move into a custom layout method anyways.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1060443002
2015-04-02 15:15:43 -07:00
Eric Seidel
d8ad81df8e Fix SkyDemo.apk on KitKat
LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS doesn't exist on K
so guard its usage.

R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/1058943004
2015-04-02 14:14:38 -07:00
Siva Annamalai
9f0601b18e gen_snapshot now generates two snapshot buffers, one for the vm isolate
and another for a regular isolate. These changes account for that change
in the mojo and sky snapshot generation scripts and the controller files.

R=zra@google.com

Review URL: https://codereview.chromium.org/1047883002
2015-04-02 11:31:29 -07:00
Tony Gentilcore
cd1ca3d88b Revert API change from issue 1053883002.
tl;dr is that unless the Proxy is passed, the caller doesn't know
whether it's a Stub or Proxy (or whether it's bound).

See that patch for further explanation.

BUG=
R=hansmuller@google.com

Review URL: https://codereview.chromium.org/1052693003
2015-04-02 08:38:33 -07:00
Benjamin Lerman
f1ee3cc379 Revert "First iteration on custom layout."
This reverts commit 4223122b79f5f7740bb2957138d14a63a2cea8d2.

This breaks sky tests.

TBR=ojan@chromium.org

Review URL: https://codereview.chromium.org/1051713007
2015-04-02 10:38:03 +02:00
Ojan Vafai
aecc73f1f5 First iteration on custom layout.
This allows setting x/y/width/height directly on an element
during a synchronous layout callback. At the moment, you can do
dangerous things (e.g. change tree structure). In a followup patch
we'll make that impossible via an IDL guard.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1023753007
2015-04-01 19:16:29 -07:00
Tony Gentilcore
0bbc4cee4a Make embedder.serviceRegistry return a ServiceRegistry instead of ServiceRegistryProxy.
The proxy has methods like close() that I think we're not intending to expose to the
caller. The ServiceRegistry is just the interface itself. This also avoids users of
the API from having to add a .ptr to their usages of the registry.

BUG=
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1053883002
2015-04-01 16:33:16 -07:00
Hixie
1ad52007bd [Effen] Remove '_isInCheckedMode' flag and use an assert() instead, since presumably that will more reliably get compiled out in prod builds.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1052793002
2015-04-01 14:28:14 -07:00
Hixie
98af3d0dee Issue 1043283003 changed the framework class names but I missed the test.
R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1056663002
2015-04-01 13:49:05 -07:00
Hixie
e3318005f4 [Effen] missed an underscore in the _ensureDepth() logic
TBR=eseidel

Review URL: https://codereview.chromium.org/1056633002
2015-04-01 12:39:59 -07:00
Hixie
ee63773cd1 [Effen] fix _ensureDepth to work on root of tree, oops
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1050153002
2015-04-01 12:08:06 -07:00
Hixie
6ff2cfbe82 [Effen] use the fact that the parent knows its depth already to avoid walking the entire tree each time, and simplify how we build the trace message
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1051913002
2015-04-01 10:30:45 -07:00
Hixie
c0067cceba [Effen] s/Node/UINode/, s/Element/WrapperNode/, s/EventTarget/EventListenerNode/
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1043283003
2015-04-01 09:46:28 -07:00
Eric Seidel
6c2f85515e Fix typo in our readme as per: https://github.com/domokit/sky_sdk/pull/1
TBR=abarth@chromium.org

Review URL: https://codereview.chromium.org/1051513004
2015-03-31 14:43:37 -07:00
Hans Muller
867df1ba15 Effen error if a component ancestor doesn't specify a style
If a component ancestor doesn't specify a style, quietly ignore it.

Currently the result is a little confusing:

[0330/124031:ERROR:dart_error.cc(20)] Unhandled exception:
Uncaught Error: The null object does not have a getter '_className'.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1041863003
2015-03-30 14:16:40 -07:00
Adam Barth
9bb425c8f7 Fix typo
TBR=hixie

Review URL: https://codereview.chromium.org/1035023003
2015-03-26 17:36:32 -07:00
Adam Barth
8c5939bb7c Fix deploy_sdk.py to include README.md and stock data files
Also, remove testplan.txt, which isn't part of the framework.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1038273002
2015-03-26 17:26:04 -07:00
Adam Barth
8aff978b43 Improve Sky READMEs
TBR=ojan@chromium.org

Review URL: https://codereview.chromium.org/1037163002
2015-03-26 17:17:34 -07:00
Adam Barth
ffce153d8a Move terminal example from //sky/examples to //examples
We're trying to clean up the //sky/examples directory to focus on mobile use
cases for the fn framework. Terminal is both focused on desktop and uses the
older custom-element framework.

R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/1038813005
2015-03-26 14:53:38 -07:00
Adam Barth
51e3fce449 Clean up examples directory
1) Merge input example into widgets example
2) Move single-file, non-fn examples into a "raw" directory
3) Rename stocks-fn and widgets-fn to stocks and widgets

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1005393006
2015-03-26 14:32:40 -07:00
Hixie
0ad1f744ce skyshell: disable cache for now
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/999253005
2015-03-26 14:27:17 -07:00
Adam Barth
81fe4edd5e Move fakesky.dart from examples to benchmark/resources
It's not really an example of how to use Sky. It's a resource for benchmarking.

TBR=raf@chromium.org

Review URL: https://codereview.chromium.org/1030423002
2015-03-26 14:08:10 -07:00
Adam Barth
e8907cd059 Remove flights example
Flights is not longer a good example of something you can build wity Sky.
Restore the flights-app-pixel test and move the assets needed for the test into
the tests directory.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1034953003
2015-03-26 13:28:23 -07:00
Adam Barth
75d2fb1bd7 Rev Mojo and Sky pub packages
TBR=ojan@chromium.org

Review URL: https://codereview.chromium.org/1038873005
2015-03-26 12:59:00 -07:00
Adam Barth
f4e54b385f Update Sky README.md
R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1030063003
2015-03-26 10:17:06 -07:00
Hixie
68ef9853ef mark obsolete CSS properties
R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1036953003
2015-03-26 09:03:25 -07:00
Hans Muller
aab55efe9c Fix a typo in embedder.dart
Connection has two Ns. It was me.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1020073003
2015-03-25 16:34:49 -07:00
Adam Barth
0dd797975c Remove <canvas>
Folks should use custom paint instead (see sky/engine/core/painting for a
sketch).

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1001913003
2015-03-25 16:15:05 -07:00
Adam Barth
8e37b98cfc StocksApp hits an ASSERT when bringing up search
Previously we'd hit an ASSERT that elements in the style sharing list support
style sharing. However, it can happen that an element gets added to the style
sharing list and then loses the ability to share styles because it has an
active animation. This CL works around the problem by skiping over those
elements when considering style sharing candidates. A better solution would be
to clear the style sharing list when it might contain such an element. However,
it's likely we will remove style sharing in the future so its easier to just
work aroudn the issue for now.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1036933002
2015-03-25 16:08:40 -07:00
Rafael Weinstein
36ad366ba0 [Effen] Add a basic layout test
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1038583003
2015-03-25 10:53:51 -07:00
Adam Barth
018bf2ba17 Add tracing for major GC in Sky
Ideally we'd trace VM operations from inside the VM, but we don't yet have
DartVM wired into tracing. Instead, we use these GC hooks to trace how long
major GC takes.

R=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/1031083003
2015-03-25 10:46:19 -07:00