Adam Barth
ed80ee081b
tests
...
Address comments
Add a basic parser benchmark
This CL adds a basic benchmark for the parser. There isn't a direct way to
exercise the parser in Sky, so we use imports.
This CL also adds a load event to <import> to determine when the import is done
loading.
R=eseidel@chromium.org
parser benchmark wip
2014-11-04 11:00:32 -08:00
Elliott Sprehn
e2a6aca882
Remove lots of Text APIs.
...
I also removed Node#normalize() which is Text related
and doesn't seem like something we need. Frameworks
can implement it if needed.
Remove most of the media stack.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/698213002
2014-11-03 22:34:23 -08:00
Elliott Sprehn
8c0a714beb
Remove most of the media stack.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/689373003
2014-11-03 20:21:19 -08:00
Elliott Sprehn
0bfad6eb75
Remove HTMLAudioElement.
...
We'll use a Mojo audio API instead.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/696913004
2014-11-03 19:08:42 -08:00
Elliott Sprehn
2fdeeca8b0
Remove WebPageSerialzier related code.
...
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/699623006
2014-11-03 19:08:16 -08:00
Elliott Sprehn
93af62d3e7
Remove HTMLVideoElement.
...
This also removes some compositor related code, but there's not much of
it anyway so we can just add it back later when we do <iframe>.
R=ojan@chromium.org , abarth@chromium.org
Review URL: https://codereview.chromium.org/701663002
2014-11-03 18:02:22 -08:00
Adam Barth
ef24228598
Remove <meta>
...
We're not using this element.
R=ojan@chromium.org , esprehn@chromium.org
Review URL: https://codereview.chromium.org/699023002
2014-11-03 16:51:31 -08:00
Adam Barth
512c4591a6
Remove HTMLLinkElement
...
Please use <import> instead.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/696413002
2014-11-03 12:51:24 -08:00
Adam Barth
4240a776a4
Replace <link rel="import"> with <import>
...
This CL is just a search-and-replace.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/694423002
2014-11-03 12:34:57 -08:00
Adam Barth
8323fb1e88
Basic implementation of <import>
...
This CL adds basic support for the <import> elements. We're using the same imports
machinery as <link rel="import">, which simplifies this patch substantially.
Currently we support both <link rel="import"> and <import>. Once this CL lands, I'll
update all the existing modules and then we can drop support for
<link rel="import">.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/681983005
2014-11-03 10:14:09 -08:00
Elliott Sprehn
c0bf67d1f9
Remove interactive content and form related API from HTMLElement.
...
In particular this inlines the accessKeyAction, removes isInteractiveContent()
which was for special casing certain elements in event dispatch, and removes
eventParameterName() which was only needed for inline event handlers.
I also moved Node::commonAncestor into NodeRenderingTraversal, the only
callers of it passed NodeRenderingTraversal::parent as the second argument,
it didn't make sense to have this generic thing.
R=abarth@chromium.org , ojan@chromium.org
Review URL: https://codereview.chromium.org/693243002
2014-10-31 18:48:50 -07:00
Elliott Sprehn
ca3b2661ef
Remove a lot of API surface from Element.
...
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/696903002
2014-10-31 16:48:20 -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
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
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
Eric Seidel
70c382c012
Remove wtf/Functional.h
...
The background parser was the last client.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/684813003
2014-10-28 10:41:02 -07:00
Adam Barth
26813e1c3c
Update tokenizer to match spec
...
This CL is a rough pass over the HTMLTokenizer to align it with parsing.md.
We'll need to do another pass more carefully in the future, but this CL gets us
roughly in the right ballpark.
We're not handling EOF properly. The parsing.md spec doesn't push the EOF
though the parser, which breaks our current way of handling EOF. We do ok if we
get EOF in the DataState, and that's enough to pass the tests for now.
Also, update camel-case.sky to reflect the fact that the parser doesn't
lower-case tag names anymore.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/678263002
2014-10-27 20:38:29 -07:00
Eric Seidel
6b82826198
Remove various Heap* types.
...
Also removed a bunch of trace() methods which
I touched by accident. Turns out they're
all very interconnected sadly.
I re-wrote Supplement to not use templates
in an earlier version of this patch
but hit some trouble with vtables
and decided to table that work
for a later time once more of oilpan
has been unwound.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/683703003
2014-10-27 18:19:46 -07:00
Adam Barth
c198c32164
Don't crash when importing a 404
...
Now we have a test for this case.
R=esprehn@chromium.org
Review URL: https://codereview.chromium.org/682913002
2014-10-27 17:22:55 -07:00
Adam Barth
7639e0fe39
Simplify HTMLInputStream
...
We don't need to deal with all the insertion point complexity.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/683693002
2014-10-27 17:06:10 -07:00
Adam Barth
82cdb4de3b
Remove HTMLTokenizerNames
...
We don't need these anymore.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/682903002
2014-10-27 17:05:46 -07:00
Adam Barth
6df700c6ff
Remove HTML entity crazy
...
This CL removes the bulk of the old HTML entity machinery. We don't need this
anymore.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/680173002
2014-10-27 17:05:17 -07:00
Adam Barth
710a717192
Parse comments according to parsing.md
...
Now we don't even generate comment tokens. The new tokenizer for comments is
much easier.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/682893002
2014-10-27 17:04:52 -07:00
Eric Seidel
64b5cb61a1
Remove all oilpan transitional types
...
I used do-webcore-rename from Blink/WebKit
which is very good at doing this kind
of search-replace.
Also removed toRefPrtNativeArray after
conversion since it previously had two
separate flavors. Both versions are no longer
used so I've removed the code until we
need one again.
https://www.irccloud.com/pastebin/5C16p5cE
is the diff I used to do-webcore-rename
TBR=abarth@chromium.org
2014-10-27 14:13:01 -07:00
Eric Seidel
74951dfc70
Remove GarbageCollected support from the bindings
...
This was the last complicated piece of removing
platform/heap, the rest should be trivial to delete
after removing :trace overrides and mass-renaming
the various WillBe types to their old versions.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/683593002
2014-10-27 13:39:37 -07:00
Adam Barth
5d98345d17
Parse Sky entities according to the spec
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/678073002
2014-10-27 13:05:31 -07:00
Adam Barth
1bceb35cdf
Remove ScriptData* states
...
In the new parsing.md spec, we parse <script> the same way as <style> so we
don't need all these tokenizer states.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/678913002
2014-10-27 13:04:45 -07:00
Adam Barth
2e40b82606
Remove more unused HTMLTokenizer features
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/678903002
2014-10-27 13:04:17 -07:00
Ojan Vafai
f9e0a463af
Remove meta viewport and @viewport CSS rules.
...
We won't need configurations like this since we don't have things
like page zoom and a default width.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/654693004
2014-10-25 23:08:58 -07:00
Adam Barth
969ccf4282
Remove compiler feature detection for = delete
...
All supported compilers have this feature. Also remove unused macros for
OVERRIDE now that override are broadly supported.
R=esprehn@chromium.org , eseidel@chromium.org
Review URL: https://codereview.chromium.org/673403002
2014-10-24 23:19:08 -07:00
Adam Barth
51b354f23a
Fix bad merge
2014-10-24 22:57:53 -07:00
Adam Barth
22b946ab61
Remove HTMLParserOptions
...
We always use threading now and there aren't any other options.
R=eseidel@chromium.org , esprehn@chromium.org
Review URL: https://codereview.chromium.org/676133002
2014-10-24 22:49:38 -07:00
Adam Barth
8f729a9b64
Delete DecodedDataDocumentParser
...
It doesn't do anything.
R=eseidel@chromium.org , esprehn@chromium.org
Review URL: https://codereview.chromium.org/675313003
2014-10-24 22:47:58 -07:00
Adam Barth
61a2a00c78
Live the dream
...
This CL plumbs the data pipe from the network stack all the way to the parser
thread. We now drain the data pipe on the parser thread, which means network
bytes don't need to transit the main thread to reach the parser.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/664573004
2014-10-24 16:51:56 -07:00
Adam Barth
b07dff7033
Remove the ability to parse HTML fragments
...
Also, removed a bunch of show() function from the custom element microtask
queue that bottom out in innerHTML.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/665613003
2014-10-24 16:51:11 -07:00
Adam Barth
e8c9ecc556
Use override and final instead of OVERRIDE and FINAL
2014-10-24 15:15:13 -07:00
Adam Barth
d71037bb51
HTMLImportLoader should talk directly to mojo::NetworkService
...
This CL re-routes the loading pipeline for HTMLImportLoader directly to
mojo::NetworkService rather than through core/fetch, platform/network, and
WebURLLoader.
R=eseidel@chromium.org , esprehn@chromium.org
Review URL: https://codereview.chromium.org/678683004
2014-10-24 15:05:42 -07:00
Adam Barth
08164a0e81
Delete ScriptableDocumentParser
...
There's only one parser: the HTMLDocumentParser. No need for the complex class
hierarchy.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/680583003
2014-10-24 11:04:40 -07:00
Elliott Sprehn
80f8a171fa
Remove MediaController.
...
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/677573002
2014-10-23 17:23:53 -07:00
Adam Barth
0bf6b1a8eb
Delete HTMLStackItem
...
The stack now just has ContainerNodes.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/666913005
2014-10-23 16:39:13 -07:00
Elliott Sprehn
4cbf7f6b1e
Remove the webkit prefix from idl properties and interfaces.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/676923002
2014-10-23 16:02:10 -07:00
Adam Barth
1bf5cca3e1
Remove unused code from the Sky parser system
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/673963002
2014-10-23 15:47:50 -07:00
Adam Barth
b189c4cd22
Remove HTMLTreeBuilderSimulator
...
There's no need to simulate the tree builder. It doesn't have any state.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/678533003
2014-10-23 15:47:13 -07:00
Adam Barth
04bb022ded
Remove BackgroundHTMLInputStream
...
Now that we don't have checkpoints, we can just use SegmentedString directly.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/676763003
2014-10-23 15:46:28 -07:00
Elliott Sprehn
c403da314c
Remove lots of machinery related to inline event handlers.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/671173006
2014-10-23 15:41:57 -07:00
Elliott Sprehn
f01716ead2
Remove inline event handler code.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/675873002
2014-10-23 15:17:07 -07:00
Adam Barth
c1d26b1d31
Remove RecordingImageBufferSurface
...
We don't enable this runtime setting.
R=ojan@google.com , ojan@chromium.org
Review URL: https://codereview.chromium.org/678483002
2014-10-23 12:56:33 -07:00
Adam Barth
ae72930937
Open the Sky
2014-10-23 11:17:19 -07:00