summaryrefslogtreecommitdiff
path: root/Userland/Libraries
AgeCommit message (Collapse)Author
2021-03-11Userland: Remove superfluous headersBen Wiederhake
Userland has no reason to access 'kmalloc'.
2021-03-11LibWeb: Remove FIXME in is_javascript_mime_type_essence_matchLuke
This was misleading. The spec just wants us to check a string matches a string in the JavaScript MIME type essence list. It doesn't want us to parse the string as a MIME type to then use its essence for the check. Renames "mime_type" to "string" to make this less misleading.
2021-03-09LibWeb: Run clang-format on CSS/Parser/StyleComponentValueRule.hAndreas Kling
2021-03-09LibWeb: Run clang-format on CSS/Parser/Token.hAndreas Kling
2021-03-09LibX86: Don't use "if (foo) [[unlikely]] { }" for now (to please clang)Andreas Kling
2021-03-09LibWeb: Add a whole bunch of rule classes for the new CSS parserAndreas Kling
Original work by @stelar7.
2021-03-09LibWeb: Rename CSSParser => DeprecatedCSSParserAndreas Kling
2021-03-09LibWeb: Add specification-based CSS tokenizerAndreas Kling
Original work by @stelar7 for #2628.
2021-03-09UserspaceEmulator+LibX86: Sprinkle some [[unlikely]] and ALWAYS_INLINEAndreas Kling
2021-03-09UserspaceEmulator+LibC: Use sys$emuctl() to pass malloc info to UEAndreas Kling
Get rid of the awkward secret handshake sequence between malloc and UE and simply use sys$emuctl() to notify UE of malloc, free and realloc.
2021-03-09LibC: Don't scrub memory in malloc/free when running in UEAndreas Kling
Since UE is keeping track of the heap anyway, we can skip the scrubbing and drastically improve the speed of malloc and free when emulating.
2021-03-09LibWeb: Expose new CSS interfaces on the window objectLuke
2021-03-09LibM: Add nan{f, l}Mițca Dumitru
2021-03-09LibM: Implement more rounding functionsMițca Dumitru
This patch implements the entire rint family, while taking into account the current rounding mode, and implements ceil, round, trunc, and floor for types which they weren't before.
2021-03-09LibM: Implement the frexp familyMițca Dumitru
2021-03-09LibM: Implement copysign for float and long doubleMițca Dumitru
2021-03-09LibM: Add scalbn and associated functionsMițca Dumitru
Also implement ldexp in terms of them, and add ldexpl
2021-03-09LibM: Add ilogb and logbMițca Dumitru
2021-03-09LibM: Specialiase FloatExtractor for long double as wellMițca Dumitru
2021-03-09LibC: Add defines to float.hMițca Dumitru
This doesn't define FLT_EVAL_METHOD as I'm not sure what I should actually use for that
2021-03-09LibC: Add imaxdiv and lldivMițca Dumitru
2021-03-09LibM: Define floating point comparsion macrosMițca Dumitru
2021-03-09LibM: Define `math_errhandling` and associated macrosMițca Dumitru
2021-03-08LibWeb: Some improvements to CSS height:auto computation for blocksAndreas Kling
Auto block heights are now computed according to something that kinda resembles the specification. Blocks with inline children and height:auto have their height computed based on the top of the first line box and the bottom of the last line box. Very straightforward. Blocks with block children and height:auto have their height computed based on the top of the first in-flow block child's margin box, and the bottom of the last in-flow block child's margin box.
2021-03-08LibGUI: Use AK_ENUM_BITWISE_OPERATORS for the FocusPolicy enumBrian Gianforcaro
2021-03-08LibWeb: Implement StyleSheet.typeAndreas Kling
This just returns "text/css" on CSSStyleSheet, nothing exciting.
2021-03-08LibWeb: Map all the IDL string types to AK::String for nowAndreas Kling
DOMString, CSSOMString and USVString can all map to AK::String for now, until we figure something better out.
2021-03-08LibWeb: Give CSSLoader a backpointer to its owner elementAndreas Kling
This allows CSSLoader to set up the style sheet owner node internally, and avoids an awkward weak link between CSSLoader and Document.
2021-03-08LibWeb: Implement StyleSheet.ownerNode :^)Andreas Kling
2021-03-08LibWeb: Start exposing CSS style sheets to JavaScript :^)Andreas Kling
This patch adds bindings for the following objects: - StyleSheet - StyleSheetList - CSSStyleSheet You can get to a document's style sheets via Document.styleSheets and iterate through them using StyleSheetList's item() and length(). That's it in terms of functionality at this point, but still neat. :^)
2021-03-08LibWeb: Allow specifying a custom C++ implementation for IDL attributesAndreas Kling
The "ImplementedAs" extended attribute can now be specified on IDL attributes to provide the name of a custom C++ implementation instead of assuming it will have the same name as the attribute.
2021-03-08LibWeb: Make generated wrapper code cast IDL longs to i32 for nowAndreas Kling
This makes it possible to use "long" and "unsigned long" in IDL.
2021-03-08Everywhere: Remove unnecessary whitespace at the end of some lines.Emanuele Torre
2021-03-08LibC: Remove stdbool.h as it is provided by the compilerMițca Dumitru
2021-03-08LibC: Define static_assert in assert.h when it's being used in CMițca Dumitru
2021-03-08LibCrypto: Fail with overflow when bitfield has too many unused bitsAnotherTest
There cannot be more unused bits than the entirety of the input. Found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31706#c1
2021-03-07LibCompress: Rename libcompression.so to libcompress.soJelle Raaijmakers
2021-03-07LibWeb: Fix clang-format issue in CSS/StyleResolver.cppAndreas Kling
2021-03-07LibWeb: Split CSS::StyleSheet into StyleSheet and CSSStyleSheetAndreas Kling
This is a little convoluted but matches the CSSOM specification.
2021-03-07LibWeb: Rename StyleRule => CSSStyleRuleAndreas Kling
This matches the CSSOM specification.
2021-03-07LibWeb: Make tiled backgrounds scroll with contentAndreas Kling
Previously the page background was always draw relative to the viewport instead of following with the content. This should eventually become an opt-in mode (via CSS "background-attachment") but for now let's have the default behavior be that backgrounds scroll with content. Also take this opportunity to move the background painting code from the two web views to a shared location in InitialContainingBlockBox.
2021-03-07LibCore: Add String variant for ArgsParser::add_positional_argumentspeles
This is basically the same version as const char *, but it's a nice helper that allows us to handle strings without casting.
2021-03-07LibGUI: Scroll selection into view when the IconView is first laid outspeles
If we set selection before the IconView is laid out, it has no size. So it can't correctly calculate where to scroll. Forcing scroll after the first resize fixes that.
2021-03-07LibLine: Clear the buffer after invalidating prior written dataAnotherTest
Otherwise this would set m_chars_touched_in_the_middle to zero, which is exactly the wrong thing to do.
2021-03-06LibGfx: Make most of Gfx::Color constexprAndreas Kling
2021-03-06LibWeb: Add a couple child node operations to Node and add node typesLuke
2021-03-06LibGfx: Fix draw_triangle() precision issuesStephan Unverwerth
This fixes some precision issues in Painter::draw_triangle() that caused the Cube demo to leave pixels empty between triangles under certain angles. Also adds some extra comments for clarity and early returns when parts of the triangle do not need to be drawn.
2021-03-06LibWeb: Make CSS background image painting respect destination origin and ↵Mihai Parparita
transparency It was previously using draw_tiled_bitmap, which always aligns the tiles with the global origin and does not respect the alpha of the source. Switch to a new Painter::blit_tiled helper which uses Painter::blit under the hood, which has more correct behavior.
2021-03-06LibM: optimized (branchless) copysignNick Wanninger
2021-03-06LibCpp: Don't crash on an empty '#' lineItamar
Closes #5634