Age | Commit message (Collapse) | Author |
|
We don't have proper line boxes yet, so we can't easily hit test
inline text.
|
|
This will be useful for testing rendering, hit testing, etc.
|
|
This is analogous to the DOM's Node.tagName and makes it easy to ask
"hey, what kinda thing is this Node?"
|
|
In the future, this should only apply to "a:link", but since we don't
have pseudo-classes yet, all "a" tags will do for now.
|
|
|
|
Also remove the color values from the ComputedStyle object and get them
via StyleProperties instead.
At the moment, we only handle colors that Color::from_string() parses.
|
|
|
|
For example, this allows you to do something like
`TelnetServer -c /usr/bin/nyancat` to have the TelnetServer run
`/usr/bin/nyancat` instead of `/bin/Shell`.
|
|
|
|
|
|
|
|
This allows you to escape function\_names\_like\_this() :^)
|
|
|
|
|
|
|
|
This is a neat simple app that can display the Serenity manual ^)
|
|
This is a simple command that can be used to display HTML from a given
file, or from the standard input, in an HtmlView. It replaces the `tho`
(test HTML output) command.
|
|
This is a GWidget that can display contents of an HTML document.
It replaces the Frame class.
|
|
|
|
|
|
|
|
|
|
|
|
This currently uses a gross hack where it subtracts 11px from the
previous sibling bottom to calculate its top. This should be fixed
by switching to a proper two-phase line layouting model, were we
first distribute inline elements into lines and figure out their
horizontal positions and heights; then compute the needed line
heights and position inline elements there vertically.
|
|
|
|
|
|
This method wraps the document tree in <html> and <body> elements if needed.
|
|
This also fixes another bug with inline wrappers. Namely,
we should only add inline wrappers if a block node has
both non-block (inline or text) and block children.
|
|
|
|
This is an utility to easily get the full margin size
(the sum of margin proper, border and padding) of an
element in pixels.
|
|
This is redundant since we already have LayoutNode::rect().
|
|
LayoutBlock::inline_wrapper() is supposed to return an inline wrapper,
a special anonymous block element intended to wrap inline children of
a block element that also has block children. Add a check for whether
the existing block child element is anonymous (refers to a DOM node),
and if it's not create a new anonymous wrapper.
|
|
This is an utility to go with the existing length_or_fallback().
|
|
The former allows you to inspect the string while it's being built.
It's an explicit method rather than `operator StringView()` because
you must remember you can only look at it in between modifications;
appending to the StringBuilder invalidates the StringView.
The latter lets you clear the state of a StringBuilder explicitly, to
start from an empty string again.
|
|
We now create a layout tree directly from the DOM tree.
This way we don't actually lose text nodes ^)
|
|
|
|
It ain't much, but it's honest work!
|
|
|
|
This command uses LibMarkdown to parse and render Markdown documents
either for the terminal using escape sequences, or to HTML. For example,
you can now do:
$ md ReadMe.md
to read the Serenity ReadMe file ^)
|
|
|
|
|
|
|
|
|
|
It turns out some BIOS vendors don't support non-BCD date/time mode, but
we were relying on it being available. We no longer do this, but instead
check whether the BIOS claims to provide BCD or regular binary values for
its date/time data.
|
|
|
|
|
|
We were just blindly trusting that the bootloader would only give us
page-aligned memory regions. This is apparently not always the case,
so now we can try to repair those regions.
Fixes #601
|
|
|
|
We were always returning the full VM range of the partially-unmapped
Region to the range allocator. This caused us to re-use those addresses
for subsequent VM allocations.
This patch also skips creating a new VMObject in partial munmap().
Instead we just make split regions that point into the same VMObject.
This fixes the mysterious GCC ICE on large C++ programs.
|
|
Since we're keeping this Region in an OwnPtr, it will be torn down when
we get to ~OwnPtr anyway.
|