summaryrefslogtreecommitdiffstats
path: root/layout/base
Commit message (Collapse)AuthorAgeLines
* Bug 1426536 - Remove nsContentUtils::IsContentInsertionPointMatt A. Tobin2020-04-17-4/+4
| | | | Tag #1375
* Bug 1419762 - Return the inline continuation of an IB split when appendingMatt A. Tobin2020-04-17-3/+20
| | | | Tag #1375
* Bug 1419964 - Remove AdjustParentFrameForAfterContentMatt A. Tobin2020-04-17-147/+70
| | | | Tag #1375
* Bug 1415843 - Remove an unneeded call to AdjustAppendParentForAfterContentMatt A. Tobin2020-04-17-46/+0
| | | | Tag #1375
* Bug 1415538 - Remove dead frame construction code (InsertFirstLineFrames)Matt A. Tobin2020-04-17-166/+4
| | | | Tag #1375
* Bug 1415152 - No need for AdjustAppendForAfter, since ::after is handled in ↵Matt A. Tobin2020-04-17-10/+3
| | | | | | FindNextSibling Tag #1375
* Bug 1413619 - Fix insertion point computation when display: contents pseudos ↵Matt A. Tobin2020-04-17-226/+160
| | | | | | are involved. Tag #1375
* Bug 979782 - Implement lazy frame construction for display:contents descendantsMatt A. Tobin2020-04-17-7/+9
| | | | | | | * Fixup FindFrameForContentSibling to don't duplicate work and trigger assertions for display: contents * Enable lazy frame construction for display: contents direct descendants Tag #1375
* Bug 1380749 - Retry AdjustAppendParentForAfterContent in case ↵Matt A. Tobin2020-04-17-9/+23
| | | | | | |parentAfterFrame| was a :first-letter frame that we deleted Tag #1375
* Bug 1416999 - Remove document.registerElementMatt A. Tobin2020-04-17-15/+18
| | | | Tag #1375
* Bug 1411754 - Rename PresShell::DestroyFramesFor to DestroyFramesForAndRestyleMatt A. Tobin2020-04-17-8/+10
| | | | Tag #1375
* Bug 1404789 - Stop reconstructing frames for the whole shadow root each time ↵Matt A. Tobin2020-04-17-0/+20
| | | | | | | | | | | | content is inserted in a shadow tree * Cleanup a bit the ShadowRoot code * Privatize ShadowRoot methods * When the shadow tree distribution changes, post a restyle + reframe * Simplify ShadowRoot::IsPooledNode * Be a bit better at detecting distribution changes Tag #1375
* Bug 1381134 - Ensure we're using the correct frame for the :after/:before ↵Matt A. Tobin2020-04-17-4/+4
| | | | | | references Tag #1375
* Bug 1389743 - Only reconstruct frames synchronously from ContentRemoved when ↵Matt A. Tobin2020-04-17-239/+196
| | | | | | called from frame construction Tag #1375
* Bug 1377978 - Make nsRange use uint32_t to offsetMatt A. Tobin2020-04-17-2/+4
| | | | Tag #1375
* Bug 1377648 - Fix HTMLSummaryElement::IsSummary() on removing the elementMatt A. Tobin2020-04-17-12/+16
| | | | | | | * Use inFlowFrame to check the target frame is summary and its parent is details * Check summary frame instead of summary element on removing the summary Tag #1375
* Bug 1368547 - Remove nsFrameManagerBase::mPlaceholderMap and instead store ↵Matt A. Tobin2020-04-17-121/+15
| | | | | | the placeholder on a frame property on the out-of-flow Tag #1375
* Bug 1368802 - nsFrameIterator::GetPlaceholderFrame should only try to get ↵Matt A. Tobin2020-04-17-11/+9
| | | | | | the placeholder for out-of-flow frames, because in-flow frames never have a placeholder Tag #1375
* Bug 1361086 - Simplify UndisplayedMap::GetListFor/GetOrCreateListFor to take ↵Matt A. Tobin2020-04-17-11/+11
| | | | | | nsIContent* rather than nsIContent** Tag #1375
* Bug 1360157 - Assert that a display: contents child always has a parentMatt A. Tobin2020-04-17-0/+1
| | | | Tag #1375
* Bug 1355351 - Make pseudo-elements return the correct style via getComputedStyleMatt A. Tobin2020-04-17-150/+68
| | | | | | | | | * Add a node property to access the ::before and ::after pseudo-elements * Look for the frame for ::before and ::after pseudos * Clean up pseudo-element props * Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos Tag #1375
* Bug 1296516 - Cleanup a bit of code in layout/baseMatt A. Tobin2020-04-17-459/+358
| | | | | | | | * Tidy RestyleManager::ContentStateChanged * Convert UndisplayedMap to a typed hashtable * Cleanup infallible or unchecked nsCSSFrameConstructor methods Tag #1375
* Bug 1330843 - Allow JS to create NAC pseudo-elementsMatt A. Tobin2020-04-17-1/+31
| | | | Tag #1375
* Bug 1346623 - Allow anonymous content created with ↵Matt A. Tobin2020-04-16-4/+19
| | | | | | | | | nsIDocument::InsertAnonymousContent can change from non-native to native AC * Prevent canvas custom content from becoming NAC when reframing the root element * Add an API to get computed style values through an AnonymousContent object Tag #1375
* Bug 1343879 - Be consistent about the parent style context the ↵Matt A. Tobin2020-04-16-9/+15
| | | | | | document-level anonymous content container should get: it should get no parent style context. Tag #1375
* Bug 1343937 - Fix a crash in nsWrapperCache.hMatt A. Tobin2020-04-16-2/+11
| | | | | | | * Implement and use GetInFlowParent * Exempt scrollbar NAC from the new NAC semantics Tag #1375
* Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content ↵Matt A. Tobin2020-04-16-29/+132
| | | | | | | | | | | with the pseudo type at creation time * Stop using a node bit for HasExplicitBaseURI * Move MAY_HAVE_CLASS to mBoolFlags * Add a flag to indicate that a node is native anonymous content * Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time, and eliminate explicit style contexts in nsIAnonymousContentCreator::ContentInfo Tag #1375
* Bug 1334358 - Remove nsCSSFrameConstructor::CreateAnonymousFramesMatt A. Tobin2020-04-14-85/+43
| | | | Tag #1375
* Bug 1334247 - Remove nsIAnonymousContentCreator::CreateFrameForMatt A. Tobin2020-04-14-16/+11
| | | | Tag #1375
* Issue #1507 - Remove nsRefreshDriver's use of high res system timers.wolfbeast2020-04-03-103/+0
| | | | | | | Since we are using vsync for timing anyway in the layout refresh driver, there is no need to bump the system timer resolution down to 1 ms. This resolves #1507.
* Revert "Issue #1355 - Better way to create display items for column backgrounds"wolfbeast2020-02-26-159/+76
| | | | This reverts commit 44c47c50388f526c2d134e16d5debebe94a0faf8.
* Issue #1355 - Better way to create display items for column backgroundswin7-72020-02-25-76/+159
| | | | | | | | | | | | | | | | | | | | | | Part 1: Remove current table item, as it's never set. Part 2: Get rid of generic table painting code, and handle each class separately. Part 4: Hoist outline skipping into col(group) frame code. Part 5: Skip box-shadow for table column and column groups. Part 6: Store column and column group backgrounds separately, and then append them before the rest of the table contents. Part 7: Pass rects in display list coordinates to AppendBackgroundItemsToTop. Part 8: Create column and column group background display items as part of the cell's BuildDisplayList. Part 9: Used cached values instead of calling nsDisplayListBuilder::ToReferenceFrame when possible, since it can be expensive when the requested frame isn't the builder's current frame. Part 10: Make sure we build display items for table parts where only the normal position is visible, since we may need to create background items for ancestors at that position. Part 11: Create an AutoBuildingDisplayList when we create background items for table columns and column groups, so that we initialize the invalidation state correctly.
* [CSS] Only emit non-GC chrome wrapped XUL box warnings in debug builds.wolfbeast2020-02-14-0/+2
|
* Merge branch 'master' of https://github.com/MoonchildProductions/UXP into ↵athenian2002020-01-27-7/+3
|\ | | | | | | form-disabled-issue
| * Merge branch '1360'wolfbeast2020-01-27-1/+1
| |\
| | * Issue #1360 - Part 2: Update tests for changed preferences.wolfbeast2020-01-26-1/+1
| | |
| * | Bug 1271549 - Remove details and summary preference.Gaming4JC2020-01-26-6/+2
| |/ | | | | | | Tag UXP Issue #1344
* / Issue #1356 - Remove -moz-user-input disabled to improve event handling.athenian2002020-01-16-3/+2
|/
* Issue #1118 - Part 5: Change the way document.open() workswolfbeast2019-12-22-0/+5
| | | | | | | | | | | | This changes the work we do for document.open() in the following ways: - We no longer create a new Window when doing document.open(). We use the same Window but remove all the event listeners on the existing DOM tree and Window before removing the document's existing children to provide a clean slate document to use for .write(). - We no longer create a session history entry (previously would be a wyciwyg URI). We now replace the current one, effectively losing the entry for the original document. - We now support document.open() on windowless documents.
* Issue #1308 - Create nsDisplayTableBackgroundColor to avoid displaywolfbeast2019-12-01-3/+37
| | | | | | | | list collisions when processing the background color of a table. This is effectively #146 Part 3c to go along with the other 2 there. This resolves #1308.
* Issue #146 - Part 6: Allow `position: sticky` on table elements.wolfbeast2019-11-03-9/+0
|
* Issue #146 - Part 3: Create nsDisplayTableBackgroundImage to avoidwolfbeast2019-11-03-7/+75
| | | | display list collisions when processing the background image of a table.
* Issue #146 - Part 3: Create nsDisplayTableFixedPosition to avoid displaywolfbeast2019-11-03-5/+103
| | | | list collisions when processing the background image of a table.
* Issue #146 - Part 2: Remove custom table painting component.wolfbeast2019-11-02-3/+0
| | | | | | Since we're now putting table borders and backgrounds properly in the display lists, we no longer need this custom component to do this work for us.
* Issue #146 - Part 1: Draw each table's background on their own displaywolfbeast2019-11-02-3/+10
| | | | | | | | | | | | | | list items. This patch does the following things: 1. Creates nsDisplayTableBorderCollapse that draws all collapse border of tables. 2. Stops the use of nsDisplayTableBorderBackground. 3. Lets column and column group frames generate display items. 4. When traversing the table, also traverses the column and column group frames. 5. For each type of table frame (col group, col, row group, row and cell), draws their own background.
* Issue #1230 - Part 1: Fix Back-computing percentages for intrinsic sizing in ↵Gaming4JC2019-09-28-73/+133
| | | | | | | | | | | | | | | | | | | | | | Layout CSS-Grid List of relevant patches applied: 1398537 part 2 - [css-multicol] Implement percentages for 'column-gap' (Gecko part). 1434478 part 1 - [css-grid] Stop back-computing percentage grid gaps when the percentage basis is indefinite. Treat them as zero sized instead. 1434478 part 2 - Stop back-computing percentage padding/margin when the percentage basis is indefinite. Treat them as zero sized instead. 1434478 part 3 - Remove IntrinsicISizeOffsetData::hPctPadding/hPctMargin members since they are now unused. 1434478 part 4 - Factor out constants like NS_UNCONSTRAINEDSIZE so they can be used in headers without needing nsIFrame.h (idempotent patch). 1434478 part 5 - Create nsLayoutUtils::ResolveToLength for resolving CSS <length-percentage> (idempotent patch). 1434478 part 6 - Propagate a percentage basis to nsIFrame::IntrinsicISizeOffsets for resolving padding/margin. This is needed only for CSS Grid since in other cases we're only using IntrinsicISizeOffsets in the inline-axis and the percentage basis is always indefinite for *intrinsic sizing*. When calculating the intrinsic size of grid items in the grid container's block axis however, we do have a definite size for the grid area in the inline-axis and it should be used per: https://drafts.csswg.org/css-grid/#algo-overview "2. Next, the track sizing algorithm resolves the sizes of the grid rows, using the grid column sizes calculated in the previous step." (Percentage padding/margin for grid items is always resolved against the grid area's inline-size nowadays.)
* Issue #438: Rename coord/coords to originValue/transformOrigin.wolfbeast2019-08-14-13/+13
| | | | For clarity and to prevent typoes.
* Issue #438: Pixel-snap subpixel value for outer SVG and anon child.wolfbeast2019-08-14-2/+7
| | | | This doesn't solve the blurriness yet, but is part of the problem.
* Issue #438: Do not round the translation of an SVG frame.wolfbeast2019-08-14-2/+8
| | | | This doesn't solve the blurriness yet, but is part of the problem.
* Outdated comment removal (no code changes)win7-72019-08-02-1/+0
| | | | No code changes.