Граф коммитов

937 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez af948d7634 Bug 1572114 - Don't bother blocking onload for already-complete shape images. r=bradwerth
That way we don't need to re-request a reflow. This code can run from reflow
itself, so requesting a reflow from here can break invariants.

There's the question of whether this code should be running at all for
continuations, but this patch fixes a bug regardless of whether we do that or
not.

Differential Revision: https://phabricator.services.mozilla.com/D41021

--HG--
extra : moz-landing-system : lando
2019-08-07 17:17:05 +00:00
Emilio Cobos Álvarez c35938887d Bug 1571460 - Set prev-in-flow before calling nsFrame::Init. r=TYLin
Parts of nsFrame::Init or code called by it should be able to rely on the
invariant that, if the frame has the NS_FRAME_OUT_OF_FLOW bit, the first-in-flow
frame has a placeholder property.

Alternatively to this patch, the NS_FRAME_OUT_OF_FLOW frame bit could be
propagated later, as it used to be.

Differential Revision: https://phabricator.services.mozilla.com//D40815
2019-08-07 16:55:34 +02:00
Cosmin Sabou 76e15b4674 Backed out changeset 3f4421e34ab4 (bug 1571460) for assertion failures on nsTextFrame.cpp. CLOSED TREE 2019-08-07 14:57:58 +03:00
Emilio Cobos Álvarez aab2a5c0a2 Bug 1571460 - Set prev-in-flow before calling nsFrame::Init. r=TYLin
Parts of nsFrame::Init or code called by it should be able to rely on the
invariant that, if the frame has the NS_FRAME_OUT_OF_FLOW bit, the first-in-flow
frame has a placeholder property.

Alternatively to this patch, the NS_FRAME_OUT_OF_FLOW frame bit could be
propagated later, as it used to be.

Differential Revision: https://phabricator.services.mozilla.com/D40815

--HG--
extra : moz-landing-system : lando
2019-08-07 10:44:54 +00:00
Ting-Yu Lin 83d9aa16f4 Bug 1571135 - Remove the preference that controls breaking floats inside columns. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D40587

--HG--
extra : moz-landing-system : lando
2019-08-05 17:39:19 +00:00
Cameron McCormack 4a4a362599 Bug 1555142 - Don't assert if we don't find a -webkit-line-clamp ellipsis when searching for one to clear. r=dholbert
The line the ellipsis was on may have already been removed.

Differential Revision: https://phabricator.services.mozilla.com/D38449

--HG--
extra : moz-landing-system : lando
2019-07-18 16:49:38 +00:00
Brendan Dahl 28dcf95b41 Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron
386947-1.xul, now has one assertion since we take a different code
path with chrome URL's and XBL files. The assertion is triggered since the
binding is invalid.

Differential Revision: https://phabricator.services.mozilla.com/D34542

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:42 +00:00
Hiroyuki Ikezoe cc47e0d6ef Bug 1562105 - Bail out if the style frame for the scrollable frame is null in ScrollFrameHelper::IsSmoothScroll. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D36303

--HG--
extra : moz-landing-system : lando
2019-06-28 16:45:54 +00:00
Ting-Yu Lin 55c5622538 Bug 1555823 - Remove bug 1323652 annotations from crashtest.lists. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D33213

--HG--
extra : moz-landing-system : lando
2019-05-30 22:18:01 +00:00
Jesse Schwartzentruber 4d2cb046da Bug 1346454 - Add a couple of crashtests. r=mats DONTBUILD
--HG--
extra : amend_source : a82dc4e2c7a6da22303e5e790d0bca1d540b3404
2019-05-27 02:45:43 +02:00
Mats Palmgren e38772d545 Bug 1553824 - [css-grid-2] Invalidate any stored used track sizes on subgrids too. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D32372

--HG--
extra : amend_source : a4f1ebc717a5b9205e89a5b3651e956d33958089
2019-05-23 21:11:48 +02:00
Emilio Cobos Álvarez 78aebf4d00 Bug 1552719 - Bump an assertion count in the XBL + lists test, since we run the code that asserts more often now. r=bustage
CLOSED TREE
2019-05-21 20:42:58 +02:00
Ting-Yu Lin b18f4b64c3 Bug 1411422 - Make percentage block size children work without "height:100%" in ::-moz-column-set and ::-moz-column-content. r=dbaron
After introducing column-span, the ColumnSetWrapperFrame can have more
than one ColumnSetFrame children if there's any column-span:all child.
Thus we cannot use "height:100%" to pass block size information down to
the -moz-column-content's children.

Skip column span wrapper in nsIFrame::IsBlockWrapper() so that the
percentage column-span:all works.

Before this patch, the height of column contents are set to 100% of the
multicol container, so if the previous in-flows of column content
anonymous boxes consume all the height, later in-flows's height are all
0. In this patch, we don't restrict column-content's height, so their
height are calculated based on their children's height.
column-contain-1a.html passes because it can now correctly calculate the
union of all the column content's rect to find the correct sticky
positioning.

Differential Revision: https://phabricator.services.mozilla.com/D27627

--HG--
extra : moz-landing-system : lando
2019-04-19 22:02:45 +00:00
Mats Palmgren ee1194b0f1 Bug 1542441 - When we pull in floats from a prev-in-flow then move any next-in-flows of those that we own to our PushedFloat list. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D27388

--HG--
extra : rebase_source : da3b54e82ae89e159ed62911715c82cb5adfe4eb
2019-04-12 23:25:47 +02:00
Hiroyuki Ikezoe 8e33d53a3c Bug 1544060 - Bail out from ScrollFrameHelper::GetScrollPadding in the case where no corresponding frame exists. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D27423

--HG--
extra : moz-landing-system : lando
2019-04-15 21:15:53 +00:00
Hiroyuki Ikezoe b2485b123d Bug 1544060 - Use the root element's primary frame to get scroll-padding value. r=botond
Now the spec cleary says that we don't need to propagate body's
scroll-padding value to the document viewport since
https://github.com/w3c/csswg-drafts/issues/3740, so we don't need to care about
GetViewportScrollStylesOverrideElement() at all.

This change fixes the crash test case in this commit, but it's not sufficient.
In the next patch, we will fix another crash case.

Differential Revision: https://phabricator.services.mozilla.com/D27422

--HG--
extra : moz-landing-system : lando
2019-04-15 21:15:58 +00:00
Hiroyuki Ikezoe eab764a7ae Bug 1312163 - Switch to the new scroll-snap-type syntax for the old scroll snap implementation and drop the scroll-snap-type-{x,y} longhands. r=emilio
Now scroll-snap-type is a longhand property.

Depends on D21621

Differential Revision: https://phabricator.services.mozilla.com/D21622

--HG--
extra : moz-landing-system : lando
2019-04-11 06:19:31 +00:00
Mats Palmgren 820bb301a2 Bug 1209952 - Move [Excess]OverflowContainers continuations of children we pull in from our prev-in-flow to our principal list to avoid making them unordered. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D26435

--HG--
extra : rebase_source : 1bf35d7f268b55ae9862c84df68d465718ecf1cf
extra : amend_source : 6fce2be87eb0a0297ca2f9179e4b54c8584084ac
2019-04-07 00:29:35 +02:00
Mats Palmgren a24fcc8d2b Bug 1539656 - Allow a11y to get list-item ordinal values even when the counter list is dirty without asserting. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D26598

--HG--
extra : amend_source : 1e5bb99c8769b038ce1ee63202191e885f846b18
2019-04-08 21:49:20 +02:00
Emilio Cobos Álvarez 992c298f60 Bug 1539267 - Bug 1539171 - Follow the list-item definition from the spec a bit more closely. r=mats
The HTML restriction doesn't match any browser.

This matches Edge, though I filed
https://github.com/w3c/csswg-drafts/issues/3766 about the pseudo-element
condition.

Differential Revision: https://phabricator.services.mozilla.com/D24936

--HG--
extra : moz-landing-system : lando
2019-03-27 15:03:20 +00:00
Mats Palmgren 07b429a847 Bug 1515124 - Add a crashtest. r=me
--HG--
extra : rebase_source : 6a9f2bb626f07ab99fb870e73f9f58a28833bf5b
2019-03-26 11:02:04 +01:00
Mats Palmgren ff5ea5f6ab Bug 205202 part 2 - [css-lists][css-pseudo] Add support for the ::marker pseudo element on list items. Test updates. r=emilio 2019-03-24 23:13:53 +01:00
Daniel Holbert 160765a37c Bug 1520798 followup: add HTML crashtest for this bug (on top of earlier XUL crashtest). no review, testonly
--HG--
extra : rebase_source : bd4f6118b856e095217643c73fda451885597cab
2019-01-17 15:42:01 -08:00
Daniel Holbert b8133e942b Bug 1520798: Null-check the result of ScrollAnchorContainer::FindFor, in DidSetComputedStyle. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D16881

--HG--
extra : moz-landing-system : lando
2019-01-17 18:39:24 +00:00
Nicolas Silva 7df7be6d7a Bug 1510076 - Reenable large-border-radius-dashed crashtests. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16189

--HG--
extra : moz-landing-system : lando
2019-01-10 14:28:19 +00:00
Ting-Yu Lin da7650abaa Bug 1517297 - Fix nsIFrame::IsColumnSpanInMulticolSubtree(). r=emilio
After Bug 1507244 Part 2 landed, only block or inline frames can have
NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit set. We need to fix
IsColumnSpanInMulticolSubtree() for other types of frames.

In multi-column formatting context, every frame having a
"column-span:all" style will be wrapped by a -moz-column-span-wrapper
frame. We can use this to check whether a non-inline and non-block frame
is in a multi-column subtree or not.

Differential Revision: https://phabricator.services.mozilla.com/D15709

--HG--
extra : moz-landing-system : lando
2019-01-04 19:16:28 +00:00
Jason Kratzer 58d934b6fe Bug 1517033 - Add a crashtest. r=emilio 2019-01-02 17:18:44 +01:00
Ting-Yu Lin 69209e69b9 Bug 1507196 - Find first ColumnSetFrame in the child lists of ColumnSetWrapperFrame (and it's continuations). r=dbaron
ColumnSetFrame is always created by
nsCSSFrameConstructor::BeginBuildingColumns(). We search for it in the
possible child lists of ColumnSetWrapperFrame and its continuations.

Differential Revision: https://phabricator.services.mozilla.com/D14501

--HG--
extra : moz-landing-system : lando
2018-12-20 00:07:59 +00:00
Boris Chiou c35f47093e Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

Differential Revision: https://phabricator.services.mozilla.com/D7536

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:37 +00:00
Ting-Yu Lin df8e9a54fd Bug 1506306 - Fix <table> having "column-span:all" style. r=bzbarsky
The main style of <table> is set on the inner TableFrame, not the outer
TableWrapperFrame. Thus, we fail to spot the table as a column-span kid
in nsCSSFrameConstructor::ConstructionBlock().

Differential Revision: https://phabricator.services.mozilla.com/D13957

--HG--
extra : moz-landing-system : lando
2018-12-13 22:43:01 +00:00
L. David Baron c91d619832 Bug 1159042 - p6. Use NS_FRAME_DYNAMIC_REFLOW_ROOT - r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9492

--HG--
extra : moz-landing-system : lando
2018-12-11 20:34:09 +00:00
Victor Porof 6d5a049f43 Bug 1503824 - Migrate the treecols binding into a custom element. r=bgrins 2018-11-27 18:43:58 +01:00
Geoff Brown 172d5d491d Bug 1507207 - Skip some tests on Android/e10s; r=snorp
When the Android harness e10s support was fixed, a few crashtests started failing.
2018-11-27 09:41:13 -07:00
WR Updater Bot 7e1f8d0464 Bug 1510075 - Disable crashtests that fail with WR PR #3342. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13024

--HG--
extra : moz-landing-system : lando
2018-11-27 01:08:50 +00:00
Ting-Yu Lin 4b1c23e4c2 Bug 1506216 - Remove bogus assert in AssertColumnSpanWrapperSubtreeIsSane(). r=bzbarsky
The assert is testing that the content's primary frame shouldn't
generate any native anonymous children, but what we really want to
ensure is that :-moz-column-span-wrapper doesn't create any native
anonymous child (because we don't restyle the wrapper), not the content
which creates ::-moz-column-span-wrapper. The condition is already
guaranteed by !aFrame->HasAnyStateBits(NS_FRAME_OWNS_ANON_BOXES) above.

Also, at this point during the frame construction, we haven't associate
the content with the its primary frame. Therefore,
nsContentUtils::AppendNativeAnonymousChildren() won't return anything
except for scrollbars on root element. That's why we have the crash in
this bug.

Differential Revision: https://phabricator.services.mozilla.com/D12359

--HG--
extra : moz-landing-system : lando
2018-11-21 18:59:00 +00:00
Timothy Guan-tin Chien af2973ef61 Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249

--HG--
extra : moz-landing-system : lando
2018-11-15 06:52:01 +00:00
Timothy Guan-tin Chien 2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Andreea Pavel d51566f085 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien c69315234b Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249

--HG--
extra : moz-landing-system : lando
2018-11-14 19:37:42 +00:00
Timothy Guan-tin Chien c0cc4f74e7 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-14 19:34:52 +00:00
Emilio Cobos Álvarez aa78b6d05a Bug 1505817 - Handle the case where a float is dynamically inserted inside a continuation. r=dbaron
The first assertion that fails here, and which causes all the havoc later, is:

  https://dev.searchfox.org/mozilla-central/rev/6e0e603f4852b8e571e5b8ae133e772b18b6016e/layout/generic/BlockReflowInput.cpp#578

That happens because the float has been dynamically inserted directly under one
of the continuations of the column set, not under the first. So that assertion
doesn't really hold.

Properly steal the float if that happens.

Differential Revision: https://phabricator.services.mozilla.com/D11359

--HG--
extra : moz-landing-system : lando
2018-11-08 21:37:16 +00:00
Daniel Holbert 039305b565 Bug 1488762: Soften an assertion about sign of free space in flex layout, since absurdly large sizes can cause it to fail. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D9876

--HG--
extra : moz-landing-system : lando
2018-10-26 00:58:40 +00:00
Daniel Holbert ae143565fe Bug 1178783: Add crashtest for (now-fixed) flexbox hang bug. (no review, test-only)
--HG--
extra : rebase_source : f23ccca84f728e5bd8261911a430cda626270158
2018-10-05 14:15:53 -07:00
Timothy Guan-tin Chien 74e03a4f3d Bug 1493741 - Don't generate elements around UA Widget shadow root r=emilio
This patch make nsCSSFrameConstructor::CreateGeneratedContentItem() early
returns if the originating element contains an UA Widget shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D6828

--HG--
extra : moz-landing-system : lando
2018-09-28 00:23:15 +00:00
Xidorn Quan 570c41577d Bug 1494380 - Ignore emphasis marks on combined text with horizontal writing mode. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D7046

--HG--
extra : moz-landing-system : lando
2018-09-27 08:50:21 +00:00
Margareta Eliza Balazs ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
Mats Palmgren d6409e3f5e Bug 1493805 - Initialize ReflowInput::mCBReflowInput also for placeholders, in case we need it for some reason. r=emilio
Bug 1493710 might make this redundant, but it seems like we
should always do this anyway just in case...
2018-09-25 05:03:26 +02:00
Emilio Cobos Álvarez 462df0be75 Bug 1493708 - Handle split frames properly in FrameParticipatesIn3DContext. r=mattwoodrow
We're traversing primary frames, which are first continuations, so we can't
start from a continuation and expect to get to it. Add an assertion that would
catch further fishyness.

Differential Revision: https://phabricator.services.mozilla.com/D6672

--HG--
extra : moz-landing-system : lando
2018-09-24 20:07:39 +00:00
Brian Grinstead a4630f7000 Bug 1487568 - Ignore whitespace only text nodes for XBL compatibility hack for unmatched children dropping content;r=smaug
For browser.xhtml, we have extra whitespace text nodes that appear inside of
mBoundElement, which was causing XBL content to be incorrectly dropped.

Differential Revision: https://phabricator.services.mozilla.com/D5546

--HG--
extra : moz-landing-system : lando
2018-09-13 18:53:41 +00:00
Emilio Cobos Álvarez 3f3f172053 Bug 1490685 - Crashtest. 2018-09-12 22:08:01 +02:00