summaryrefslogtreecommitdiffstats
path: root/layout
Commit message (Collapse)AuthorAgeLines
* Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions]Matt A. Tobin2020-04-17-0/+82
| | | | 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-227/+161
| | | | | | 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 1409975 - Implement node distribution for shadow tree slotsMatt A. Tobin2020-04-17-140/+214
| | | | | | | | | | * Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
* Bug 1418002 - Remove HTMLContentElementMatt A. Tobin2020-04-17-6/+9
| | | | Tag #1375
* Bug 1416999 - Remove document.registerElementMatt A. Tobin2020-04-17-29/+32
| | | | 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-5/+97
| | | | | | references Tag #1375
* Bug 1396584 - Remove support for multiple ShadowRootsMatt A. Tobin2020-04-17-116/+0
| | | | 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-9/+17
| | | | Tag #1375
* Bug 1377648 - Fix HTMLSummaryElement::IsSummary() on removing the elementMatt A. Tobin2020-04-17-12/+35
| | | | | | | * 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-166/+52
| | | | | | 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 1373798 - Move HTML dir attribute state into event state flagsMatt A. Tobin2020-04-17-7/+25
| | | | | | | | | | * Stop calling SetHasDirAuto/ClearHasDirAuto in input element code * Introduce event state flags that track the state of an element's dir attribute * Rewrite our existing checks for the state of the dir attr on top of the new event state flags * Add pseudo-classes for matching on the dir attribute states * Use the new dir attribute pseudoclasses in html.css Tag #1375
* Bug 1332353 - Make it clearer when a stylesheet is really owned by its mDocumentMatt A. Tobin2020-04-17-24/+69
| | | | Tag #1375
* Bug 1367683 - Optimize initializing nsRangeMatt A. Tobin2020-04-17-60/+46
| | | | 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-167/+117
| | | | | | | | | * 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-3/+45
| | | | Tag #1375
* Bug 1346623 - Allow anonymous content created with ↵Matt A. Tobin2020-04-16-4/+80
| | | | | | | | | 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-4/+33
| | | | | | | * Implement and use GetInFlowParent * Exempt scrollbar NAC from the new NAC semantics Tag #1375
* Bug 1340885 - Null check frame's content when searching for NAC ancestors in ↵Matt A. Tobin2020-04-16-1/+2
| | | | | | GetCorrectedParent Tag #1375
* Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content ↵Matt A. Tobin2020-04-16-107/+199
| | | | | | | | | | | 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-90/+49
| | | | Tag #1375
* Bug 1334247 - Remove nsIAnonymousContentCreator::CreateFrameForMatt A. Tobin2020-04-14-60/+19
| | | | Tag #1375
* Issue #1375 - Fix unified sourcesMatt A. Tobin2020-04-14-4/+7
|
* Bug 1321284 - Crash in nsCSSFrameConstructor::GetInsertionPrevSibling when ↵Matt A. Tobin2020-04-14-1/+83
| | | | | | | | | | | | trying to reframe native anonymous content * Make StyleChildrenIterator skip NAC generated by root element primary frame ancestors. * Add nsINode::GetFlattenedTreeParentNodeForStyle. * Add iterator class to find all restyle roots. NOTE: Parts 1, 2, and "4.2" Tag #1375
* Issue #1512 - Improve handling of multiple selections.wolfbeast2020-04-12-1/+1
| | | | | | | | | IsSelectionEditable should check whether the focus node and anchor node aren't null before trying to use them. This also changes the initialization of selections' aOutIndex to the last range in the selection as a fallback in case we don't add a range later (in AddItem) which could also end up with a null selection otherwise if the additional selection nodes are removed.
* [layout] Always move descendants of layout frames if moved.wolfbeast2020-04-10-0/+2
| | | | | If we move the frame then we always need to move any descendant views, not just in case the frame itself has a view.
* Issue #1511 - Bail on orphan situation.wolfbeast2020-04-10-0/+4
| | | | This resolves #1511
* 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.
* Issue #1355 - Make addition of cell border display items depend onwolfbeast2020-03-16-4/+112
| | | | | | | | whether they should be drawn. This reduces the size of display lists for tables by only adding display list items that are actually going to be visibly drawn, which will help overall performance of table drawing.
* Issue #1485 - Fix incorrect grid cell sizing to min/max space.wolfbeast2020-03-13-29/+77
| | | | | | | | | | | | | | | | There were actually two separate logical errors in this method: The first part is that "origSizes.isSome()" is simply a bogus requirement for applying min/max-sizes here. I'm still keeping the optimization of not needlessly copying the mSizes array (as originally intended) since it's a quite common case. The second bug is that min/max-sizes were only applied under the "if (fr != 0.0f)" block. This is bogus since the calculated 'fr' value depends on 'aAvailableSize' which might change by applying min/max-sizes and thus 'fr' could become non-zero in the second round. To fix, this patch just moves "applyMinMax" block out one level.
* Issue #1480 - Skip abspos, fixed, float and placeholders for outline.wolfbeast2020-03-11-2/+12
|
* Revert "Issue #1355 - Better way to create display items for column backgrounds"wolfbeast2020-02-26-1054/+830
| | | | This reverts commit 44c47c50388f526c2d134e16d5debebe94a0faf8.
* Revert "Layout\reftests\table-background\reftest.list should have only ↵wolfbeast2020-02-26-15/+15
| | | | | | additions to the end of it." This reverts commit efdc2af8ab06c50b85e584ef15deab73b66bec6d.
* Layout\reftests\table-background\reftest.list should have only additions to ↵win7-72020-02-26-15/+15
| | | | | | the end of it. Layout\reftests\table-background\reftest.list should have only additions to the end of it. Revert incorrect additions.
* Issue #1355 - Better way to create display items for column backgroundswin7-72020-02-25-830/+1054
| | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #1447 from win7-7/optimization-4-prMoonchild2020-02-17-123/+77
|\ | | | | Speed up nsTableColFrame::GetColIndex