| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
more intuitive than shoehorning it into "view image"
(also makes it easier to apply the content type)
|
|
|
|
| |
Only available in "app" mode.
|
| |
|
|
|
|
|
|
| |
Well, I guess this works for now, but something is still wrong.
In Gecko, document.__proto__ === Document.__proto__, but in Chawan,
it isn't.
|
| |
|
| |
|
| |
|
|
|
|
| |
Now screen.width etc. works in the pager too.
|
| |
|
| |
|
| |
|
|
|
|
| |
Respects autofocus.
|
| |
|
|
|
|
| |
toJS is generally more efficient
|
|
|
|
| |
it should have been a function
|
|
|
|
|
|
|
|
|
|
| |
For APIs that cannot be implemented in a privacy-friendly manner.
As a start, I've added accurate screen size queries; getComputedStyle,
getBoundingClientRect, etc. should follow. (We have a harmless
getComputedStyle already, but it's broken.)
Probably, things like JS-based scroll belong in here too, but I'm not
sure yet. (Perhaps autofocus should be reused instead?)
|
| |
|
| |
|
| |
|
|
|
|
| |
doing it manually is too error prone
|
| |
|
|
|
|
|
|
| |
I want to use it in the UA sheet, so the loop won't cut it.
(Also fix a parsing bug that prevented "of" from working.)
|
| |
|
|
|
|
| |
Lets us skip a couple pointless multiplications/divisions during layout.
|
|
|
|
| |
Uses an additional lower-case map for O(1) case-insensitive comparisons.
|
|
|
|
|
|
|
|
|
|
|
| |
Implemented using proprietary selectors -cha-first-node and
-cha-last-node, modeled after -moz-first-node and -moz-last-node.
I think they are compatible.
That does mean this is more limited than w3m's trimming, e.g. it can't
really deal with nesting or empty tags. I think this is fine, as it's
mainly meant for unstyled documents in the first place (which are
unlikely to have e.g. MAIN tags).
|
|
|
|
|
|
|
| |
Instead, just define the actual value over the getter function on the
first use.
Also, avoid accidentally creating the attributes NamedNodeMap on adopt.
|
| |
|
| |
|
| |
|
|
|
|
| |
another case of "the object model was unnecessarily complex"
|
|
|
|
| |
ctx can be HTML even if we take `this'
|
|
|
|
| |
In my defense, it was broken in the spec too.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* remove std/streams use from mime.types; mmap and parse directly
* use mime.types for inline image extensions
* add some jpeg file extensions
Latter came up because I was trying to add a format locally and it
wouldn't recognize it on images from my file system (i.e. by extension).
As a security measure we still do not allow additional extensions for
predefined inline image types.
|
| |
|
|
|
|
| |
only the most basic form; no media queries yet
|
|
|
|
|
| |
This couldn't get into system.nim for technical reasons, but it's still
pretty useful when iterating over non-mutable openArrays.
|
| |
|
|
|
|
| |
one less mystery
|
|
|
|
|
|
|
|
|
|
| |
* add HTMLDocument as alias to Document
* set Image as configurable/writable
So looking closer, HTMLDocument *is* specified, just major browsers
don't follow the spec.
I doubt this incompatibility causes issues, anyway.
|
| |
|
| |
|
|
|
|
|
|
|
| |
It necessarily removes the config.images check from codec access, which
I'm not quite happy about, so I've added a check to the DOM instead.
(TODO: maybe pager should just dynamically grant codec access as a
capability instead? but maybe that's even more error prone...)
|
|
|
|
|
| |
It is documented in chame that parentNode may be nil, and indeed, it is
nil in some cases.
|
| |
|
|
|
|
| |
canceled was not being set, because we jumped out of the loop too early.
|
| |
|
| |
|
| |
|