summaryrefslogtreecommitdiff
path: root/layout
Commit message (Collapse)AuthorAge
* Issue #2343 - replace MOZ_FALLTHROUGH with [[fallthrough]]Moonchild2023-11-11
| | | | Basically a S&R. Removed the macro and adjusts IDL codegen accordingly.
* Issue #2342: Use [[nodiscard]] in /gfx and /layoutMoonchild2023-11-08
|
* Issue #2364 - Limit the growth of scaling for animated nsDisplayTransformMoonchild2023-11-01
| | | | | | | | | | | | | | in the fallback case. This ensures we don't scale the underlying size of the layer beyond what is close to the current display size. When box shadows get much larger than this, they start taking so much time to render that successive frames grow in scale too fast for any inter-frame reuse to be possible. With this, we avoid that and no longer get crushed by re-rendering gigantic box shadows every single frame. See BZ 1383825
* Issue #2364 - Only use HWA AlphaBoxBlur when targets are large enough.Moonchild2023-11-01
| | | | | | | | There's considerable cost associated with creating HWA draw targets which would negate and regress the performance won by it if used for too small targets (like small spans of text). This only uses HWA if >= 8K SurfaceAllocationSize to balance HWA draw target cost with box blur cost.
* Issue #2364 - use DrawTarget::DrawSurfaceWithShadow to render boxMoonchild2023-11-01
| | | | shadows on platforms that accelerate it.
* Issue #2364 - Re-factor AlphaBoxBlurMoonchild2023-11-01
| | | | | | Only blur one quadrant of a box-shadow and mirror it to the other quadrants. This applies only if the corners are symmetrical (square corners or equal corner radii) otherwise we'll fall back to the old method.
* Issue #2357 - Add reftest for WebM alpha.Jeremy Andrews2023-10-24
| | | | | | I figured I should include the reftest for the sake of completeness, though I have already verified the feature working from the site mentioned in the forum thread that prompted me to look into this in the first place. Ref: BZ 1331528
* Issue #2357 - WebM demuxer can't tell when a video wants to be transparent.Jeremy Andrews2023-10-24
| | | | | | Required to have an alpha channel (which in the strange world of graphics seems to refer to transparency, and not experimental code) in WebM videos. Straight port of Firefox 53 implementation, adapted slightly for a couple of patches previously taken without this. Ref: BZ 1320829
* Issue #2355 - Apply self-transforms to the frame of top level <svg>Moonchild2023-10-22
| | | | | | | | | | | We previously didn't do this because we relied on our anonymous wrapper to perform transforms. However, that resulted in only the children transforming, and the frame's cliprect wouldn't be updated, giving the impression of the z-ordering being wrong. Also adds reftests from the relevant BZ bug found later. Resolves #2355
* Merge pull request 'Align the Performance Observer navigation and resource ↵Moonchild2023-10-20
|\ | | | | | | | | | | with the spec.' (#2353) from dbsoft/UXP:po-navres-2282 into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2353
| * Issue #2282 - Align the Performance Observer navigation and resource with ↵Brian Smith2023-10-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the spec. This now passes the conformance tests. https://bugzilla.mozilla.org/show_bug.cgi?id=1425458 Resource timing entries Workers - part 2 - PerformanceTimingData. https://bugzilla.mozilla.org/show_bug.cgi?id=1462605 PerformanceNavigationTiming.name must be the value of the address of the current document. https://bugzilla.mozilla.org/show_bug.cgi?id=1462883 Update PerformanceTimingData::mReportCrossOriginRedirect in SetPropertiesFromHttpChannel. https://bugzilla.mozilla.org/show_bug.cgi?id=1462879 PerformanceNavigationTiming must be notified correctly - part 1 - notify.
* | Merge pull request 'Clean up the rest of EME' (#2348) from 2346-EME-cleanup ↵Moonchild2023-10-19
|\ \ | |/ |/| | | | | | | into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2348
| * Issue #2346 - Remove MOZ_EME conditional codeMoonchild2023-10-17
| |
* | Backport of Mozilla tooltip bugs:Basilisk-Dev2023-10-16
|/ | | | | Bug 148624 - only show tooltip when document has focus Partial Bug 1857513 - Use window activeness rather than document.hasFocus() to display chrome-only tooltips
* Issue #2316 - Part 3: Clarify commentMoonchild2023-09-26
|
* Issue #2316 - Part 2: Add reftestsMoonchild2023-09-26
|
* Issue #2316 - Part 1: Use fallback element sizes for w/h-less SVGMoonchild2023-09-26
| | | | | Instead of completely failing the call, use the CSS specified intrinsic default width/height of 300x150.
* Make Gecko Media Plugins optional when not building EME or WebRTCMatheus Marinho2023-08-31
| | | | Co-authored-by: Moonchild <moonchild@palemoon.org>
* Issue #2293 - Add preferences to disable CSS animation/transition props.Moonchild2023-08-30
| | | | This resolves #2293
* Issue #2284 - Update reftest for behaviour change.Moonchild2023-08-13
| | | | I've verified this against Edge-latest.
* Issue #2284 - Add exception for flex/grid items resolving percentages ↵Moonchild2023-08-13
| | | | | | against parent. This folds in BZ bugs 1578586 and 1092007 part 2.
* Issue #2250 - Part 2: Ignore the ancestor filter assertion if rule matching ↵FranklinDM2023-05-21
| | | | | | is restricted or if the current element is under a shadow host This only affects debug builds.
* Issue #2250 - Part 1: Return early if the element being tested for is likely ↵FranklinDM2023-05-21
| | | | an ancestor and does not have an assigned slot
* Issue #1765 - Part 3: Provided token type should be used in LookForTokenTypeFranklinDM2023-05-14
| | | | I didn't realize this immediately after moving the code into a method. Oops.
* Issue #1765 - Part 2: Implement calc() parsing inside rgb/a() and the ↵FranklinDM2023-05-13
| | | | | | | | non-hue component of hsl/a() This also adds a new helper method for checking the type of tokens that will be parsed after the current token, which is useful for determining the unit of values inside calc() functions. Partially based on https://github.com/roytam1/UXP/commit/8a0897d23f5b51526f8a2c6ef63cb26968e6b985
* Issue #1765 - Part 1: Move ReduceNumberCalcOps struct up higher, rename ↵FranklinDM2023-05-13
| | | | IsCSSTokenCalcFunction to CSSParserImpl::IsCalcFunctionToken
* Issue #1656 - Remove more vim control lines.Moonchild2023-05-04
| | | | | | | Vim control lines were re-introduced or not entirely cleaned up. This nukes them again. Removing from embedding, extensions, gfx, hal, ipc, layout, mailnews, media and memory. More to come.
* Issue #1862 - Follow-up: Replace deprecated Harfbuzz functions with current ↵Job Bautista2023-04-30
| | | | | | ones. Based on Mozilla bug 1500356.
* Issue #252 - Follow-up: Include a null check against mDocumentFranklinDM2023-04-07
|
* Issue #252 - Move getElementsByName from HTMLDocument to DocumentFranklinDM2023-04-07
| | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1415176
* Issue #2191 - Remove as much old fontconfig support as needed for Harfbuzz ↵Job Bautista2023-04-05
| | | | | | | | | | | | | 7.1.0 update. Based on Mozilla bugs 1119128, 1285533, and 1421964. gfx.font_rendering.fontconfig.fontlist.enabled is no longer available. gfxFontconfigUtils.h still exists, and will be removed in another commit. Just need more research on bug 1385029. Tag #1862
* Merge pull request 'Don't reconstruct the parent when tearing down ↵Moonchild2023-03-26
|\ | | | | | | | | | | `display:contents` nodes' (#2178) from 2176 into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2178
| * Issue #2176 - Don't reconstruct the parent when tearing downMoonchild2023-03-26
| | | | | | | | | | | | | | | | | | | | | | | | | | display:contents nodes with pseudo-elements. We need to use StyleChildrenIterator which iterates over them, instead. This is a bit of a hack but we can't always have our cake. We need to be a bit careful though, since ::before and ::after are owned by their own frame, and thus could be unbound from the tree or even dead after removing the frame. This basically ports bugs 1435566 and 1438467
* | Issue #2135 - Don't discard event state mask when matching ::slotted() or ↵FranklinDM2023-03-24
|/ | | | | | :host arguments This should fix issues with selectors like :host(:hover) that continue to be matched although the cursor is no longer hovering over those elements.
* Issue #1592 - Part 8: Test the assigned slot for type/class/ID/attribute ↵FranklinDM2023-03-23
| | | | instead of the slottable when matching ::slotted()
* Issue #1592 - Part 7: Slottables cannot be matched from the outer tree.FranklinDM2023-03-23
|
* Issue #1592 - Part 6: Allow pseudo-classes with a forgiving selector list ↵FranklinDM2023-03-23
| | | | | | argument to follow pseudo-elements Pseudo-classes with a forgiving selector list argument are allowed to follow a pseudo-element, but must treat any selector that is not of the same type as invalid. It doesn't make any sense, but that's the behavior of other tainted browsers.
* Issue #1592 - Part 5: Use flattened element tree when looking for a parent ↵FranklinDM2023-03-23
| | | | while matching ::slotted()
* Issue #1592 - Part 4: Walk ::slotted()-containing rules for slottablesFranklinDM2023-03-23
| | | | | | | - Check against all selector parts and not the leftmost selector only for ::slotted() - Walk rules for ::slotted() regardless if the shadow root is opened/closed - Ensure that ::slotted() rules are walked in the right order - Fix ::slotted inheritance from topmost shadow root
* Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ↵FranklinDM2023-03-23
| | | | ::slotted()
* Issue #1592 - Part 2: Parse ::slotted() pseudo-element as if it were a ↵FranklinDM2023-03-23
| | | | | | | | pseudo-class - Block slot elements from being matched by ::slotted - Ensure ::slotted() is serialized as a pseudo-element - Add pref to control whether the pseudo-class is enabled
* Issue #1592 - Part 1c: Pass SelectorParsingFlags as a referenceFranklinDM2023-03-23
|
* Issue #1592 - Part 1b: Move <slot> UA rule to html.cssFranklinDM2023-03-23
| | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1468127
* Issue #1592 - Part 1a: Prevent crashing if a slot element was selected via ↵FranklinDM2023-03-23
| | | | DOM Inspector
* Issue #1593 - Follow-up: Fix :host matching from inside the shadow treeFranklinDM2023-03-20
| | | | Previously, we'd match :host despite the element having a different shadow root from the one that we currently have. Also, there's a test where :host should be blocked from matching if it is a descendant of an explicit universal selector.
* Merge pull request 'Modify :not() selector to accept a complex selector ↵Moonchild2023-03-11
|\ | | | | | | | | | | list' (#2151) from FranklinDM/UXP-contrib:work_css-not-selector-list-support into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2151
| * Issue #2137 - Part 4: Fix namespace regressionFranklinDM2023-03-10
| |
| * Issue #2137 - Part 3: Don't always use the internal pseudo-class for ↵FranklinDM2023-03-10
| | | | | | | | handling negations
| * Issue #2137 - Part 2: Implement SelectorParsingFlags and use it to pass info ↵FranklinDM2023-03-10
| | | | | | | | around
| * Issue #2137 - Part 1: Modify :not() selector to accept a complex selector listFranklinDM2023-03-10
| |