Commit Graph
163 Commits
Author SHA1 Message Date
Sylvestre Ledru 6be5ec2fff Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,core-sessionstore-reviewers,profiles-reviewers,ai-platform-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk
Differential Revision: https://phabricator.services.mozilla.com/D287874
2026-04-14 12:56:19 +00:00
agoloman ae99dfb565 Revert "Bug 2023419: apply code formatting via Lando" for causing bc failures @browser_sendQuery.js.
This reverts commit aa15b809d9.

Revert "Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ - follow up r=emilio"

This reverts commit c659385796.

Revert "Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,core-sessionstore-reviewers,profiles-reviewers,ai-platform-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk"

This reverts commit 1e55e9bf9b.
2026-04-13 13:06:21 +00:00
Sylvestre Ledru 1e55e9bf9b Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,core-sessionstore-reviewers,profiles-reviewers,ai-platform-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk
Differential Revision: https://phabricator.services.mozilla.com/D287874
2026-04-13 11:30:51 +00:00
rperta f5848b1deb Revert "Bug 2023419: apply code formatting via Lando" for causing bc failures at browser_sendQuery.js and browser_console_to_mozlog.js
This reverts commit f8a9770c7d.

This reverts commit 47e16fbdd2.

This reverts commit 9f363abaef.
2026-03-20 06:37:54 +00:00
Sylvestre Ledru 9f363abaef Bug 2023419 - Remove Emacs/Vim modelines from toolkit/ r=emilio,mkaply,extension-reviewers,credential-management-reviewers,desktop-theme-reviewers,win-reviewers,webcompat-reviewers,profiles-reviewers,ai-ondevice-reviewers,mconley,twisniewski,gstoll,jhirsch,rpl,dimi,akulyk
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287874
2026-03-20 04:55:48 +00:00
Norisz Fay a86d829321 Revert "Bug 2012637 - part 9: Add a Firefox Source Docs documentation page for TreeKind and notable issues r=smaug,dom-core" as requested by dev
This reverts commit 88008cd8ca.

Revert "Bug 2012637 - part 8: Make `nsContentUtils::ComparePoints` handle `TreeKind::Flat` and `TreeKind::FlatForSelection` correctly r=smaug,dom-core"

This reverts commit 73e6f6587b.

Revert "Bug 2012637 - part 7: Make `RangeUtils::CompareNodeToRangeBoundaries()` use `nsContentUtils::ComparePoints` with valid point in the tree r=smaug"

This reverts commit 6985d5e80f.

Revert "Bug 2012637 - part 6: Make `nsRange::CutContents()` convert the range boundaries to the ones in the DOM before comparing r=smaug"

This reverts commit 73b585af3d.

Revert "Bug 2012637 - part 5: Delete the default template parameter of `nsContentUtils::ComparePoints` and relatives r=smaug,dom-core"

This reverts commit 1a7f24e5b5.

Revert "Bug 2012637 - part 4: Make `nsContentUtils` use `nsIContent` for taking a child node as a parameter r=smaug"

This reverts commit a6ea8d6824.

Revert "Bug 2012637 - part 3: Add template `nsINode` API which can switch to call API from `TreeKind` r=smaug,dom-core,webidl"

This reverts commit a4211e9df0.

Revert "Bug 2012637 - part 2: Add `TreeKind::FlatForSelection` and change the template parameter of `ChildIteratorBase` to `TreeKind` r=smaug,dom-core"

This reverts commit 0241749ee7.

Revert "Bug 2012637 - part 1: Make `ChildIterBase` template class to re-implement `FlattenedChildIterator` for DOM, Flat and FlatForSelection TreeKind r=smaug,dom-core,layout-reviewers,emilio"

This reverts commit 9e71cb77fb.
2026-03-13 02:52:45 +00:00
Masayuki Nakano 1a7f24e5b5 Bug 2012637 - part 5: Delete the default template parameter of nsContentUtils::ComparePoints and relatives r=smaug,dom-core
They accept any kind of points even if it does not match with the
template parameter's `TreeKind` because the caller wants to check the
relation in different kind of tree.  Therefore, any callers need to
consider the `TreeKind` more carefully and clarify the `TreeKind` makes
developers easier to find a bug.

Differential Revision: https://phabricator.services.mozilla.com/D281308
2026-03-12 03:01:54 +00:00
Masayuki Nakano 9e71cb77fb Bug 2012637 - part 1: Make ChildIterBase template class to re-implement FlattenedChildIterator for DOM, Flat and FlatForSelection TreeKind r=smaug,dom-core,layout-reviewers,emilio
`FlattenedChildIterator` is a non-template class and work only for the
flattened tree (i.e., in the `TreeKind::Flat` mode).

To centralize the implementation to access children from a parent node
in the various kinds of tree except `ShadowIncludingDOM`, this patch
makes it a template class and support the simple DOM (for
`TreeKind::DOM`), the flattened tree (for`TreeKind::Flat`) and also the
flattened tree for selection whose `TreeKind` will be added by the next
patch.

The reason why this patch does not support
`TreeKind::ShadowIncludingDOM` is, it is not clear that which children
should be handled when the parent is a shadow host, i.e., whether the
children of the host or the `ShadowRoot`. Therefore, the caller should
use `ShadowRoot` if the users want to list up the the children from a
host. Then, the code is really clear about what it does.

Differential Revision: https://phabricator.services.mozilla.com/D281303
2026-03-12 03:01:45 +00:00
serge-sans-paille 2680f1aa2a Bug 1995938 - Remove unused inclusion of DebugOnly.h r=emilio,necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,toolkit-telemetry-reviewers,firefox-svg-reviewers,layout-reviewers,dom-worker-reviewers,bytesized,gstoll,mstange,TYLin,chunmin,jesup,asuth
Differential Revision: https://phabricator.services.mozilla.com/D269780
2025-10-27 10:48:42 +00:00
Cristian Tuns 6f66cdf3c7 Revert "Bug 1995938 - Remove unused inclusion of DebugOnly.h r=emilio,necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,toolkit-telemetry-reviewers,firefox-svg-reviewers,layout-reviewers,dom-worker-reviewers,bytesized,gstoll,mstange,TYLin,chunmin,jesup,asuth" for causing build bustages in TargetFunction.h
This reverts commit 10e5184168.
2025-10-27 08:58:03 +00:00
serge-sans-paille 10e5184168 Bug 1995938 - Remove unused inclusion of DebugOnly.h r=emilio,necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,toolkit-telemetry-reviewers,firefox-svg-reviewers,layout-reviewers,dom-worker-reviewers,bytesized,gstoll,mstange,TYLin,chunmin,jesup,asuth
Differential Revision: https://phabricator.services.mozilla.com/D269780
2025-10-27 08:00:43 +00:00
Jan-Niklas Jaeschke 3c4c3d7c9a Bug 1951607 - nsFind should find <options> inside an <optgroup>. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D269163
2025-10-19 17:58:48 +00:00
Jan-Niklas Jaeschke ab69e32e02 Bug 1970909: Call reveal algorithm for callers of find algorithm instead of the find algorithm itself. r=emilio
The previous behavior caused all sorts of edge-casey issues:
Find-in-page would open all <details> or hidden=until-found elements
which contain the search string. Therefore, accordions would open
one after another, and the last one would be opened instead of the one
with the match.

Finding a text fragment on a page would open all details/hidden=until-found  elements
which contain any of a context term of the text directive.

Creating a text fragment link (context menu -> Copy Link to Highlight) would open
all hidden=until-found/details elements which contain the target range.

The reason for this behavior was `nsFind::Find()` calling the reveal algorithm unconditionally.

This patch fixes this by only calling the reveal algorithm at the appropriate places,
which is inside the find-in-page backend (`nsTypeAheadFind.cpp`),
in the `window.find()` backend (`nsWebBrowserFind.cpp`),
and in the text fragment finder backend (`TextDirectiveFinder.cpp`).

In addition, this patch refactors the tests for finding hidden=until-found / <details> elements:
- test_nsFind.html only tests that text inside hidden=until-found or <details> can be found
- New tests in `browser_findbar_hidden_beforematch.js` and `test_find.html` ensure that
  the elements are visible after they are found, and that `beforematch` is fired for hidden=until-found elements
- New tests have been added for finding and creating text fragments to ensure that only the correct elements are revealed.

Differential Revision: https://phabricator.services.mozilla.com/D269160
2025-10-19 17:10:26 +00:00
Jan-Niklas Jaeschke 8310684150 Bug 1980442 - Update ancestor reveal algorithm to follow the spec. r=dom-core,smaug
This patch combines the ancestor revealing algorithms for
hidden=until-found and auto-expanding <details>.

Differential Revision: https://phabricator.services.mozilla.com/D260337
2025-08-08 15:02:58 +00:00
Jan-Niklas Jaeschke 573f34249c Bug 1949053, part 4 - Rename CharacterData::TextFragment() to CharacterData::DataBuffer(). r=masayuki,firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D259935
2025-08-06 08:48:09 +00:00
Jan-Niklas Jaeschke 0151e67615 Bug 1949053, part 2 - Rename nsTextFragment to mozilla::dom::CharacterDataBuffer. r=masayuki
This patch updates all occurrences of the type `nsTextFragment` into its new name, `mozilla::dom::CharacterDataBuffer`.
It also updates the includes, including sorting.

Differential Revision: https://phabricator.services.mozilla.com/D259867
2025-08-06 08:48:01 +00:00
Jan-Niklas Jaeschke 94f7a92240 Bug 1724299, part 1 - Implement auto-expanding details. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D241454
2025-04-02 08:22:48 +00:00
Jan-Niklas Jaeschke a876c168a1 Bug 1761043, part 6 - hidden=until-found: Implementedhidden=until-found in nsFind. r=emilio
This fixes Text Fragments tests as well since
that feature relies on `nsFind`.

Differential Revision: https://phabricator.services.mozilla.com/D241452
2025-04-02 08:22:47 +00:00
Jan-Niklas Jaeschke 4550b6ae3f Bug 1949877 - nsFind: Return null if boundary points are removed from the DOM tree. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D240494
2025-03-07 09:09:24 +00:00
Jan-Niklas Jaeschke 369be69fa0 Bug 1945862 - Make nsFind respect the end point correctly. r=emilio
This patch refactors the find functionality in a few ways:
- A C++-only method `FindFromRangeBoundaries()` is introduced,
  which uses `RangeBoundary`s instead of collapsed `nsRange`s
  to describe the search range.
- Use `nsContentUtils::ComparePoints()` to check whether the
  end of the search range has been reached. This is more robust
  than the previous check and finds the end point also when it's
  in a node which is being skipped (eg. a non-text-node).
- Clarify the interface: The search start and end points are now
  always in document read order, and independent of
  the search direction.
  Therefore, the start point must always be before the end
  (this is asserted). All usages of the find code are updated
  accordingly.
- Some bugs in the tests, which have surfaced because of
  the broken end point implementation have been fixed.

Differential Revision: https://phabricator.services.mozilla.com/D237497
2025-02-15 16:02:34 +00:00
Rika ecb7f6a413 Bug 1943846 - Fix nsFind::IsSpace to handle UTF-32 characters correctly. r=emilio
The original IsSpace macro uses nsCRT::IsAsciiSpace which doesn't handle
UTF-32 characters (characters above U+FFFF) correctly. Add a check for UTF-32
characters to ensure correct matching behavior. Also add a test case to
test_nsFind.html to verify the fix for Bug 1943846.

Differential Revision: https://phabricator.services.mozilla.com/D236455
2025-02-04 10:59:18 +00:00
Goloman Adrian b7a06793b0 Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED TREE 2025-02-02 15:06:13 +02:00
Rika cadb67f680 Bug 1943846 - Fix nsFind::IsSpace to handle UTF-32 characters correctly. r=emilio
The original IsSpace macro uses nsCRT::IsAsciiSpace which doesn't handle
UTF-32 characters (characters above U+FFFF) correctly. Add a check for UTF-32
characters to ensure correct matching behavior. Also add a test case to
test_nsFind.html to verify the fix for Bug 1943846.

Differential Revision: https://phabricator.services.mozilla.com/D236455
2025-02-02 12:21:24 +00:00
Butkovits Atila dc449b9e83 Backed out changeset e1882c174191 (bug 1943846) for causing bustages at nsFind.cpp. CLOSED TREE 2025-02-01 21:28:59 +02:00
Rika 89849a208a Bug 1943846 - Fix nsFind::IsSpace to handle UTF-32 characters correctly. r=emilio
The original IsSpace macro uses nsCRT::IsAsciiSpace which doesn't handle
UTF-32 characters (characters above U+FFFF) correctly. Add a check for UTF-32
characters to ensure correct matching behavior. Also add a test case to
test_nsFind.html to verify the fix for Bug 1943846.

Differential Revision: https://phabricator.services.mozilla.com/D236455
2025-02-01 19:01:55 +00:00
Jan-Niklas Jaeschke 3550ce80b8 Bug 1928931: Speed up nsFind by reusing the word segmenter. r=emilio
Turns out that `nsFind::BreakInBetween()` is called a lot,
especially for large documents.
If `nsFind::Find()` is then called in a loop (e.g. for creating a text directive),
the alloc cost for the word segmenter shows up in profiles.
This can be avoided by having the segmenter be a member of `nsFind`.

Differential Revision: https://phabricator.services.mozilla.com/D227804
2024-11-04 12:44:49 +00:00
Emilio Cobos Álvarez d25d53b6fc Bug 1909311 - Remove nsIFormControlFrame and nsITextControlFrame. r=masayuki,layout-reviewers,dholbert
It's a rather useless interface:

 * nsITextControlFrame is only implemented by nsTextControlFrame, so we
   can just use that.
 * nsIFormControlFrame had very few actual functionality, mostly
   scattered around:
    * SetFormProperty(select) was only useful for nsTextControlFrame.
    * SetFormProperty(value) was only called on file controls.
    * SetFocus() did mostly nothing, or things that can be done in
      ElementStateChanged instead.

There are some do_QueryFrame calls that I replaced for better checks in
font inflation and nsIFrame, but I'll adjust to preserve behavior if you
insist (it just such a somewhat-random check).

Differential Revision: https://phabricator.services.mozilla.com/D217322
2024-07-23 16:16:18 +00:00
Masayuki Nakano 9dfe52606b Bug 1906015 - part 2: Make the most do_QueryInterface users for nsIFormControl use new getter methods r=smaug,credential-management-reviewers,sessionstore-reviewers,sclements
Unfortunately, the following QIs are still required.
https://searchfox.org/mozilla-central/rev/cbdfa503a87597b20719aae5f6a1efccd6cb3b7b/dom/html/nsIConstraintValidation.cpp#101,121

Depends on D215576

Differential Revision: https://phabricator.services.mozilla.com/D215577
2024-07-10 00:46:59 +00:00
Otto Länd d50520d1d1 Bug 1897942, 1897956, 1898321: apply code formatting via Lando
# ignore-this-changeset
2024-06-19 19:00:12 +00:00
Jan-Niklas Jaeschke 0339c0813d Bug 1897942 - Text Fragments: Replace spec find-string-in-range algorithm with nsFind. r=emilio
`nsFind` is updated in this patch to allow checking for word boundaries at the beginning and the end of the match pattern instead of only allowing to specify whether a whole word should be searched (ie., word boundary at start and end), or not (ie., no word boundary required at start and end).
This change does not affect the IDL interface and is only available from C++. It is tested by the scroll-to-text-fragment WPTs.

This patch also introduces some more verbose debug logging for the algorithm to find a text directive.

Differential Revision: https://phabricator.services.mozilla.com/D211029
2024-06-19 17:16:39 +00:00
Iulian Moraru a9377e5b95 Backed out 4 changesets (bug 1898321, bug 1897942, bug 1897956) for causing multiple failures.
Backed out changeset ec3fcdcbfbd7 (bug 1897942)
Backed out changeset 279025d15551 (bug 1898321)
Backed out changeset a239855b02ea (bug 1897942)
Backed out changeset aab98ffe0ee9 (bug 1897956)
2024-06-14 18:43:03 +03:00
Otto Länd a84541f3b2 Bug 1897942, 1897956, 1898321: apply code formatting via Lando
# ignore-this-changeset
2024-06-14 12:51:04 +00:00
Jan-Niklas Jaeschke c1478bce2d Bug 1897942 - Text Fragments: Replace spec find-string-in-range algorithm with nsFind. r=emilio
`nsFind` is updated in this patch to allow checking for word boundaries at the beginning and the end of the match pattern instead of only allowing to specify whether a whole word should be searched (ie., word boundary at start and end), or not (ie., no word boundary required at start and end).
This change does not affect the IDL interface and is only available from C++. It is tested by the scroll-to-text-fragment WPTs.

This patch also introduces some more verbose debug logging for the algorithm to find a text directive.

Differential Revision: https://phabricator.services.mozilla.com/D211029
2024-06-14 12:20:48 +00:00
Gregory Pappas 48834b756d Bug 1881845 - Remove nsContentCID.h r=smaug,media-playback-reviewers,karlt
All of these components have been converted to static registration, making this
file unneeded.

Differential Revision: https://phabricator.services.mozilla.com/D202633
2024-03-04 23:41:05 +00:00
Emilio Cobos Álvarez 3a411e96d5 Bug 1868316 - Remove user-find, make inert not findable. r=dholbert
As per the HTML spec.

Differential Revision: https://phabricator.services.mozilla.com/D201906
2024-02-16 20:18:06 +00:00
Emilio Cobos Álvarez 67262cc9ec Bug 1868316 - Prototype a user-find css property to control findability of text. r=jfkthame
Nightly-only for now waiting on CSSWG discussion.

Differential Revision: https://phabricator.services.mozilla.com/D199727
2024-02-02 09:45:45 +00:00
Emilio Cobos Álvarez c195031050 Bug 1825825 - Simplify NAC setup. r=smaug
Make all UA widgets also NAC.

Keep the UA widget flag but break at anonymous subtree boundaries, so
that only nodes inside the UA widget directly (and not NAC from those)
get the flag.

This is important because two callers depend on this difference:

 * The style system, since we still want to match content rules from
   stylesheets in the UA widget. We also match user rules, which is a
   bit sketchy, but that was the previous behavior, will file a
   follow-up for that.

 * The reflector code, since we want the scope for UA widgets to not
   include the NAC nodes inside that UA widget. nsINode::IsInUAWidget
   got it wrong.

After this patch, ChromeOnlyAccess is equivalent to
IsInNativeAnonymousSubtree, so we should probably unify the naming.
That's left for a follow-up patch because I don't have a strong
preference.

Differential Revision: https://phabricator.services.mozilla.com/D174310
2023-04-05 09:19:15 +00:00
serge-sans-paille a5d66bed2a Bug 1817714 - Make toolkit/components/find buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D170319
2023-02-21 18:57:44 +00:00
Marian-Vasile Laza 37097ea9c2 Backed out 9 changesets (bug 1817715, bug 1817721, bug 1817716, bug 1817719, bug 1817720, bug 1817722, bug 1817718, bug 1817714, bug 1817717) for BP-hybrid bustages on PacketDumper.h.
Backed out changeset b582db8692bb (bug 1817722)
Backed out changeset f1d37a26a9ea (bug 1817721)
Backed out changeset f0991bfb779c (bug 1817720)
Backed out changeset 42c27b8d075b (bug 1817719)
Backed out changeset 67f07f966ef3 (bug 1817718)
Backed out changeset 408aa730ae68 (bug 1817717)
Backed out changeset 708b5529e7da (bug 1817716)
Backed out changeset f0a3ca660b68 (bug 1817715)
Backed out changeset 36af23356e21 (bug 1817714)
2023-02-21 17:57:00 +02:00
serge-sans-paille 8f53915af8 Bug 1817714 - Make toolkit/components/find buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D170319
2023-02-21 13:12:26 +00:00
Jonathan Kew bcd112d303 Bug 1645990 - Treat table rows as separate blocks for Find-in-page purposes, rather than matching continuously across row boundaries. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D164640
2022-12-14 15:05:22 +00:00
Martin RobinsonandJihye Hong b5d910a0ca Bug 1791759 - Add support for content-visibility: auto r=emilio
This change adds support for `content-visibilty: auto` as well as
showing and hiding content based on the relevancy of the content as
defined in the specification. Changes to relevancy are handled by
triggering updates in a set of `content-visibility: auto` frames stored
in PresShell at the appropriate time in the document lifecycle.

Some tests are now failing due to this feature exposing the failures,
but they will be fixed in later changes.

This change is a reland of an earlier version that properly updates
intrinsic sizes and triggers an update of remembered size for the
purposes of contain-intrinsic-size when content relevancy changes.

Co-authored-by: Jihye Hong <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D159693
2022-11-30 18:00:27 +00:00
Marian-Vasile Laza 3f33580c27 Backed out changeset c428c3ad7725 (bug 1791759) for causing wpt failures on auto-012.html. CLOSED TREE 2022-11-28 13:31:05 +02:00
Martin RobinsonandJihye Hong 92b6a75ea4 Bug 1791759 - Add support for content-visibility: auto r=emilio
This change adds support for `content-visibilty: auto` as well as
showing and hiding content based on the relevancy of the content as
defined in the specification. Changes to relevancy are handled by
triggering updates in a set of `content-visibility: auto` frames stored
in PresShell at the appropriate time in the document lifecycle.

Some tests are now failing due to this feature exposing the failures,
but they will be fixed in later changes.

Co-authored-by: Jihye Hong <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D159693
2022-11-28 09:53:06 +00:00
Martin Robinson d6b19e86ff Bug 1789255: Anonymous children of elements with content-visibility should not be skipped for layout r=emilio
Some anonymous children are important for properly sizing their parents
even when those parents hide content with `content-visibility`. This is
shown by regressions in the proper layout of some form elements with
`content-visibility`.

This change introduces a more conservative approach for avoiding layout
of hidden content. Instead of leaving all children dirty during reflow,
reflow anonymous frames (and nsComboboxDisplayFrame, a specialized kind
of anonymous frame). This change means that frames may only lay out some
of their children, so it must introduce some more changes to assumptions
during line layout.

In addition, this change renames `content-visibility` related methods in
nsIFrame in order to make it more obvious what they do.

Differential Revision: https://phabricator.services.mozilla.com/D157306
2022-09-15 20:32:27 +00:00
Norisz Fay 59f059dd2d Backed out changeset c3780baf6f24 (bug 1789255) for causing build bustages CLOSED TREE 2022-09-15 21:14:04 +03:00
Martin Robinson a7d2990285 Bug 1789255: Anonymous children of elements with content-visibility should not be skipped for layout r=emilio
Some anonymous children are important for properly sizing their parents
even when those parents hide content with `content-visibility`. This is
shown by regressions in the proper layout of some form elements with
`content-visibility`.

This change introduces a more conservative approach for avoiding layout
of hidden content. Instead of leaving all children dirty during reflow,
reflow anonymous frames (and nsComboboxDisplayFrame, a specialized kind
of anonymous frame). This change means that frames may only lay out some
of their children, so it must introduce some more changes to assumptions
during line layout.

In addition, this change renames `content-visibility` related methods in
nsIFrame in order to make it more obvious what they do.

Differential Revision: https://phabricator.services.mozilla.com/D157306
2022-09-15 17:56:42 +00:00
Sandor Molnar 12e1fb9746 Backed out changeset 3a5759eabb42 (bug 1789255) for causing wpt failures in netwerk/protocol/http/Http2Session.cpp CLOSED TREE 2022-09-14 02:01:36 +03:00
Martin Robinson 00e3cff6d7 Bug 1789255: Anonymous children of elements with content-visibility should not be skipped for layout r=emilio
Some anonymous children are important for properly sizing their parents
even when those parents hide content with `content-visibility`. This is
shown by regressions in the proper layout of some form elements with
`content-visibility`.

This change introduces a more conservative approach for avoiding layout
of hidden content. Instead of leaving all children dirty during reflow,
reflow anonymous frames (and nsComboboxDisplayFrame, a specialized kind
of anonymous frame). This change means that frames may only lay out some
of their children, so it must introduce some more changes to assumptions
during line layout.

In addition, this change renames `content-visibility` related methods in
nsIFrame in order to make it more obvious what they do.

Differential Revision: https://phabricator.services.mozilla.com/D156473
2022-09-13 20:01:35 +00:00
Jonathan Kew dc66ba0cee Bug 1769413 - Treat start/end-of-text as a word boundary for the Find-in-Page whole-words option, even when the adjacent character is punctuation. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D150247
2022-06-24 22:10:53 +00:00