gecko-dev/layout
Masayuki Nakano 1110bedb45 Bug 1613830 - Add nsINode::GetAsElementOrParentElement() r=smaug
This patch assumes that only element node can have content node.  I.e., we
won't hit the following `MOZ_ASSERT`:

```
Element* element = nullptr;
nsIContent* content = aContent;
while (content) {
  if (content->IsElement()) {
    element = content->AsElement();
    break;
  }
  content = content->GetParent();
}
MOZ_ASSERT(!content || content == element || content->GetParent() == element);
```

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

--HG--
extra : moz-landing-system : lando
2020-02-21 02:47:05 +00:00
..
base Bug 1613830 - Add nsINode::GetAsElementOrParentElement() r=smaug 2020-02-21 02:47:05 +00:00
build Bug 1615131 - Make StaticRange instances reused as far as possible like nsRange r=smaug 2020-02-14 15:02:43 +00:00
doc
forms Bug 1616620 - maxlength shouldn't apply to <input type=number>. r=smaug 2020-02-20 15:28:51 +00:00
generic Bug 1613830 - Add nsINode::GetAsElementOrParentElement() r=smaug 2020-02-21 02:47:05 +00:00
inspector Bug 1614202 - Implement parsing for CSS conic-gradient syntax. r=emilio 2020-02-19 17:43:04 +00:00
ipc Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
mathml Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
media
painting Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman 2020-02-21 00:12:47 +00:00
printing Bug 1552966. Convert the printing code to stop using DocShellTree* classes. r=farre 2020-02-14 16:31:01 +00:00
reftests Bug 1616368 - [reftest] Replace 'default-preferences' with 'defaults' r=dbaron 2020-02-20 18:47:54 +00:00
style Bug 1616161 - Add generate_with_same_crate entrypoint to RunCbindgen.py. r=emilio 2020-02-21 01:16:57 +00:00
svg Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
tables Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
tools Bug 1616368 - [reftest] Replace 'default-preferences' with 'defaults' r=dbaron 2020-02-20 18:47:54 +00:00
xul Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
moz.build