Adam Barth
e1c150ffca
Drop support for this.exports
...
Please use module.exports instead. As far as I know, all code in the repo has
been converted over to the new style.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/698543006
2014-10-31 15:02:45 -07:00
Eric Seidel
509999eccd
Add a PRESUBMIT for gn check, currently only for //sky/*
...
Also fixed //sky/* to pass gn check again.
This makes all of our previous DEPS header checking
obsolete and those can be removed now.
R=jamesr@chromium.org
Review URL: https://codereview.chromium.org/697733002
2014-10-31 14:25:33 -07:00
Ojan Vafai
7d3feb3952
Remove line breaking to avoid window.
...
Now that we don't have multi-column or pagination, this
is dead code. This also means we don't need to call
layoutBlockFlow in a loop.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/697713002
2014-10-31 12:41:40 -07:00
Adam Barth
e18d99a0f3
Make clicks on <a> request a navigation
...
Currently our window manager isn't listening for these requests, but it would
work if we loaded sky in wm_flow or example_window_manager.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/695803003
2014-10-31 11:27:44 -07:00
Ojan Vafai
20dd8466c7
Remove border-fit.
...
This just lets you size an element to it's content. We should
do this in a more generic way or let you override layout
and do it yourself.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/698613002
2014-10-31 10:59:40 -07:00
Adam Barth
97565a73db
Introduce blink::ServiceProvider
...
This CL is a warmup for making hyperlinks actually work. ServiceProvider lets
the embedder inject a bundle of services that are specific to the embedding
context (e.g., NavigatorHost). Services that are independent to the embedding
context can be injected via blink::Platform.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/696733003
2014-10-31 10:54:03 -07:00
Elliott Sprehn
cf29897cbc
Devirtualize a bunch of Element.
...
These methods have no sublcass implementations now.
R=ojan@chromium.org , abarth@chromium.org
Review URL: https://codereview.chromium.org/694443003
2014-10-30 23:13:08 -04:00
Elliott Sprehn
c384b62ef1
Remove lots of dead virtuals from Element.
...
Mostly form related things we don't need now.
R=ojan@chromium.org , abarth@chromium.org
Review URL: https://codereview.chromium.org/694703002
2014-10-30 23:03:02 -04:00
Elliott Sprehn
dfbf806148
Remove HasPendingResources flag.
...
This was an SVG-ism we don't need.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/694683002
2014-10-30 22:46:51 -04:00
Ojan Vafai
80efab4680
Remove straggling bits of listboxes.
...
Also remove some straggling bits of textareas along the way.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/653993007
2014-10-30 16:46:17 -07:00
Elliott Sprehn
cf5d82f390
Don't hit ASSERT_NOT_REACHED() when adding a scroll listener.
2014-10-30 15:23:04 -07:00
Ojan Vafai
31c4826beb
Remove createsAnonymousWrapper. It's dead code.
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/696493003
2014-10-30 14:41:47 -07:00
Adam Barth
cb61ad4cf4
Add support for Element#getAttributes
...
As described in //sky/specs/apis.md
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/691893002
2014-10-30 13:55:59 -07:00
Adam Barth
4be2d764fa
Remove Platform::parseDataURL
...
We only use this data URL parser to pre-cache images loaded from data URLs.
It's not clear we need that optimization in this system. If we do want it, we
can just call the data URL parser directly.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/691623003
2014-10-30 09:41:31 -07:00
Adam Barth
07106fceee
Remove callOnMainThread
...
This API is redundant with exposing the main-thread task runner.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/691493004
2014-10-30 09:40:12 -07:00
Adam Barth
fc451b47eb
Unfork Sky's trace events
...
This CL remove the body of Sky's TraceEvent.h in favor of the version in base.
There's still some more of the system to unwind before we can remove all the
other boilerplate.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/691663002
2014-10-30 09:39:46 -07:00
Ojan Vafai
0dfbf8aa38
Remove writing mode code from the linebox tree.
...
Yo dawg, I heard you like ternaries.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/688233002
2014-10-29 20:29:59 -07:00
Ojan Vafai
21bde7479d
Remove final instances of WritingMode in Sky.
...
After this patch, the only instance of WritingMode is in a comment.
No change in behavior.
TBR=esprehn@chromium.org
Review URL: https://codereview.chromium.org/674073005
2014-10-29 19:58:14 -07:00
Ojan Vafai
86ed666dc2
Get rid of isWritingModeRoot.
...
This function always returns false now that we don't have writing modes.
TBR=esprehn@chromium.org
Remove flipForWritingMode.
It's a noop now that we don't have writing modes.
Review URL: https://codereview.chromium.org/688223002
2014-10-29 19:53:05 -07:00
Ojan Vafai
13ffe46a43
Remove flipForWritingMode.
...
It's a noop now that we don't have writing modes.
TBR=esprehn@chromium.org
Review URL: https://codereview.chromium.org/684393002
2014-10-29 19:45:15 -07:00
Ojan Vafai
90b8d2e589
Remove text-combine.
...
This is a vertical writing mode feature. Sky doesn't support
vertical writing mode.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/677843004
2014-10-29 19:30:32 -07:00
Ojan Vafai
3b628f7d39
Delete a ton more dead vertical writing mode code.
...
No change in behavior.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/684383002
2014-10-29 19:08:09 -07:00
Ojan Vafai
afa0148e0b
First pass at removing dead vertical writing mode code.
...
This just removes a random subset of vertical writing mode bits
that I grepped for. There's a ton more to do, but it seems best to
do it in chunks.
The key things for understanding this patch, isWritingModeRoot is
always false and isHorizontalWritingMode is always true. Also,
we're never flipped* modes of any kind, so we can undo any flipping.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/688213002
2014-10-29 19:06:59 -07:00
Adam Barth
a9c5a685c1
Remove a number of frontends to ResourceFetcher
...
We no longer fetch any of these types from the ResourceFetcher.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/690823002
2014-10-29 16:26:34 -07:00
Elliott Sprehn
c9e551fda5
Remove more stuff from Widget.
...
This removes even more APIs from widget. This also removes some methods
that had been broken and made infinitely recursive on FrameView.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/684353002
2014-10-29 15:57:18 -07:00
Adam Barth
e000e53207
Remove Platform::cryptographicallyRandomValues
...
We can just call the base API directly.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/691483005
2014-10-29 15:55:19 -07:00
Elliott Sprehn
ca6775b3da
Remove a lot of Widget APIs.
...
We don't need a lot of the Widget API. I also removed the
visibility code which seems to have been broken when we
removed FrameView::show and hide(), which looks like it
would have broken image loading. Unfortuantely we don't
have pixel tests or tests that load images so I can't
test this yet. Even so it's a good simplificatin since
our system has no concept of hidden widgets.
R=abarth@chromium.org , ojan@chromium.org
Review URL: https://codereview.chromium.org/691453002
2014-10-29 15:23:10 -07:00
Elliott Sprehn
7c0366d891
Remove most of FloatingObject.
...
This leaves some uses of FloatingObject*, but it doesn't
leave the impl of the class so it's all dead code passing
around null pointers. I'll remove that in a future patch.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/689733003
2014-10-29 15:04:40 -07:00
Elliott Sprehn
e47b2bdb5f
Remove a lot of floats related code.
...
R=eseidel@chromium.org , ojan@chromium.org
Review URL: https://codereview.chromium.org/678113005
2014-10-29 14:08:55 -07:00
Adam Barth
8385799d73
Fix line numbers in JavaScript stack traces
...
Instead of calling the function constructor to compile script in Sky, we now
concatenate strings. This has the advantage of making the line numbers
generated in error messages correct but the disadvantage of being a hack. I've
filed https://code.google.com/p/v8/issues/detail?id=3624 to request a proper
API for this purpose.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/688033003
2014-10-29 14:00:57 -07:00
Ojan Vafai
959c404854
Remove all writing mode function arguments and remove writing mode from RenderStyle.
...
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/683803006
2014-10-29 12:18:30 -07:00
Ojan Vafai
8b0d9e8ac9
First past at removing writing mode.
...
This removes the parsing and the enum. This leaves a bunch of
dead code around to fix in a followup.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/689743002
2014-10-29 12:17:11 -07:00
Scott Violet
e782924013
Fixes release build
...
Only fails in release.
R=abarth@chromium.org
BUG=none
Review URL: https://codereview.chromium.org/684123003
2014-10-29 09:00:25 -07:00
Elliott Sprehn
3ad63531da
Remove Nine Patch layers.
...
These were only used for doing effects in Clank and the
shadows around the page when bouncing on the Mac. Now
they're dead code.
In the future if we decide nine patch is an API we really
want we should expose web platform primitives instead of
having a special API on layer.
R=ojan@chromium.org , abarth@chromium.org
Review URL: https://codereview.chromium.org/685983002
2014-10-28 20:13:46 -07:00
Ojan Vafai
53638e9784
Remove more frame-level scrolling machinery.
...
We don't need to know anymore whether the scroll was programmatic.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/684063002
2014-10-28 20:10:59 -07:00
Ojan Vafai
ce9aa787cb
Remove more frame-level scrolling machinery.
...
This is all dead code. No change in behavior.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/678193005
2014-10-28 19:27:52 -07:00
Elliott Sprehn
82245c19f8
Remove getTickmarks.
...
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/681293005
2014-10-28 19:22:17 -07:00
Ojan Vafai
e246934fb9
Remove more scrolling methods from FrameView.
...
No change in behavior. Just deleting dead code.
Also removes ScrollAnimatorNone since it's unused.
We'll need to bring some of this back, but we'll
do that when we get rid of composited scrolling.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/682363002
2014-10-28 17:38:08 -07:00
Ojan Vafai
a10806067d
Get rid of ScrollbarGroup. Sky doesn't use it.
...
More cleanup of dead code now that we don't have frame-level scrolling.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/687553006
2014-10-28 17:37:23 -07:00
Elliott Sprehn
dc00d6678b
Remove a lot of dead Scrollbar methods.
...
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/685003003
2014-10-28 17:29:41 -07:00
Adam Barth
74db9da5e1
Add inspect command to skydb
...
This CL adds an "inspect" command to skydb that injects the inspector module
into the page and prints some instructions for opening the inspector.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/690433004
2014-10-28 17:08:25 -07:00
Ojan Vafai
423d08cc86
More cleanup of dead code now that we don't have frame-level scrolling.
...
No change in behavior. The overflowchanged event was never fired.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/687783003
2014-10-28 16:53:47 -07:00
Elliott Sprehn
b8843caa44
Remove concept of child Widgets.
...
FrameView doesn't really need to know about the child widgets,
which are just Scrollbars now.
I also deleted some dead code from Widget and removed FrameWidget
since we don't need that abstraction now.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/685593005
2014-10-28 16:53:12 -07:00
Elliott Sprehn
e379c7382a
Remove PageOverlays.
...
These were related to the inspector overlays, if we want to
do this in the future we should place mojo::Views over the
page in the sky debugger so sky itself doesn't need to manage
the overlay views.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/687003002
2014-10-28 15:44:00 -07:00
Elliott Sprehn
63d21b0287
Remove RenderWidget.
...
This is part of the old iframe and plugin system, we don't need it.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/682263003
2014-10-28 15:10:32 -07:00
Elliott Sprehn
2f329e05b0
Remove RenderPart.
...
This was part of the old plugin system, we don't need it.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/686903003
2014-10-28 15:01:27 -07:00
Ojan Vafai
c2ceb794d5
Get rid of slow repaint objects and main thread scrolling reasons.
...
We will only have one scrolling path in Sky, so we don't need
machinery for mutiple scrolling codepaths.
Remove viewportConstrained plumbing.
Sky doesn't have viewport constrained elements (no position:fixed).
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/661633003
2014-10-28 14:57:38 -07:00
Ojan Vafai
223c532e5f
Remove viewportConstrained plumbing.
...
Sky doesn't have viewport constrained elements (no position:fixed).
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/688433003
2014-10-28 14:28:39 -07:00
Elliott Sprehn
4aa67a30c5
Remove AllowUserAgentScript.
...
This was only used for deprecated plugins in blink,
we don't need it now.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/687803002
2014-10-28 14:28:30 -07:00
Adam Barth
f3e367c383
Don't crash when importing a module that doesn't export
...
Instead of crashing, we should use the value "undefined". There's some question
as to whether we should default to the document, but we can resolve that later.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/690483002
2014-10-28 14:13:31 -07:00