summaryrefslogtreecommitdiffstats
path: root/layout
Commit message (Collapse)AuthorAgeLines
* 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
| * Issue #1355 - Make nsTableCellFrame::GetColIndex/GetRowIndex fasterwin7-72020-02-16-123/+77
| | | | | | | | We can devirtualize it, remove some branches.
* | [CSS] Only emit non-GC chrome wrapped XUL box warnings in debug builds.wolfbeast2020-02-14-0/+2
| |
* | Fix a whitespace issue in nsComputedDOMStyle.cppwolfbeast2020-02-12-3/+3
| |
* | [CSS] Add stub for font-variation-settingswolfbeast2020-02-11-0/+42
|/ | | | | | | | | | | | This stub is added because websites insist on considering this very hardware-dependent and O.S.-variable low-level font-control as a "critical feature" which it isn't as there is 0 guarantee that font variation settings are supported or honored by any operating system used by the client. On top this is a WD status feature that sites shouldn't be using, and the feature itself is strongly discouraged for use in favor of standard CSS font manipulation keywords like `font-weight`.
* Merge pull request #1393 from win7-7/optimization-3-prMoonchild2020-02-08-12/+26
|\ | | | | Do less work for columns not in the desired set in PaintRowGroupBackgroundByColIdx
| * Issue #1355 - Do less work for columns not in the desired set in ↵win7-72020-02-06-12/+26
| | | | | | | | | | | | | | | | | | | | PaintRowGroupBackgroundByColIdx Do less work in PaintRowGroupBackgroundByColIdx for cells that are not in our desired set of columns. crash fix: Guard against empty column groups when building a display list for a table.
* | Merge pull request #1388 from win7-7/devirtualize-prMoonchild2020-02-07-61/+24
|\ \ | | | | | | Merging this in even without a test performed since the code change looks sane. real-world testing will have to be performed.
| * | fix whitespacewin7-72020-02-05-1/+1
| | | | | | | | | | | | fix whitespace.
| * | Issue #1386 - Devirtualize GetRowSpan/GetColSpanwin7-72020-02-03-61/+24
| |/ | | | | | | It's at ~1.5% on the perf log for the Netflix use case, which seems a bit too much.
* | Issue #1395 - Remove FlyWeb ServiceMatt A. Tobin2020-02-06-11/+0
| |
* | Issue #1390 - Get rid of the Presentation APIMatt A. Tobin2020-02-06-31/+0
|/
* Issue #1355 - Hit testing in large tables has become extremely slowwin7-72020-02-02-7/+30
| | | | Add dirty rect intersection checks so that we don't build unnecessary table part display items.
* Issue #1378 - Follow-up: make sure background items remain table-aligned.wolfbeast2020-02-02-1/+1
|
* Issue #1378 - Align the drawing of table cell backgrounds with the spec.wolfbeast2020-02-02-55/+105
|
* Merge pull request #1376 from win7-7/optimization-1-prMoonchild2020-01-30-28/+27
|\ | | | | Speed up the traversal of a table row frame's child cells
| * Issue #1355 - Speed up the traversal of a table row frame's child cellswin7-72020-01-29-28/+27
| | | | | | | | Speed up getting the first cellframe in a row and the next cellframe after the given one
* | Merge branch 'master' of https://github.com/MoonchildProductions/UXP into ↵athenian2002020-01-27-73/+19
|\| | | | | | | form-disabled-issue
| * Merge branch '1360'wolfbeast2020-01-27-7/+3
| |\
| | * Issue #1360 - Part 2: Update tests for changed preferences.wolfbeast2020-01-26-7/+3
| | |
| * | Bug 1315885 - Part 4: Implement callback reaction for custom element reactions.Gaming4JC2020-01-26-2/+0
| | | | | | | | | | | | | | | | | | Note: Skipped SyncInvokeReactions since it is removed in CE v1, waste of time. Tag UXP Issue #1344
| * | Bug 1271549 - Remove details and summary preference.Gaming4JC2020-01-26-64/+16
| |/ | | | | | | Tag UXP Issue #1344
* / Issue #1356 - Remove -moz-user-input disabled to improve event handling.athenian2002020-01-16-35/+29
|/
* Bug 1322938 - Basic implementation of HTMLDialogElement.Gaming4JC2020-01-07-0/+21
| | | | Tag #1343
* Issue #1345 - Implement non-standard legacy CSSStyleSheet rulesJustOff2020-01-07-0/+29
|
* Issue #1118 - Part 6: Fix various tests that are no longer correct.wolfbeast2019-12-22-1/+0
| | | | | The behavior change of document.open() requires these tests to be changed to account for the new spec behavior.
* 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.