From bebec8fcb84dba6b684dfe1cc6c8a1e7741df374 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 14 Apr 2020 21:50:13 -0400 Subject: Bug 1321284 - Crash in nsCSSFrameConstructor::GetInsertionPrevSibling when 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 --- dom/base/ElementInlines.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dom/base/ElementInlines.h') diff --git a/dom/base/ElementInlines.h b/dom/base/ElementInlines.h index c68bd012e..df2cc2e24 100644 --- a/dom/base/ElementInlines.h +++ b/dom/base/ElementInlines.h @@ -25,6 +25,17 @@ Element::UnregisterActivityObserver() OwnerDoc()->UnregisterActivityObserver(this); } +inline Element* +Element::GetFlattenedTreeParentElementForStyle() const +{ + nsINode* parentNode = GetFlattenedTreeParentNodeForStyle(); + if MOZ_LIKELY(parentNode && parentNode->IsElement()) { + return parentNode->AsElement(); + } + + return nullptr; +} + } // namespace dom } // namespace mozilla -- cgit v1.2.3 From f63b86a46183ddbd76d2dc6f563c0cc78e348789 Mon Sep 17 00:00:00 2001 From: adeshkp Date: Tue, 5 May 2020 08:43:34 +0530 Subject: Issue #457 - Fix warning about inline nsINode::GetFlattenedTreeParentNodeForStyle being undefined --- dom/base/ElementInlines.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dom/base/ElementInlines.h') diff --git a/dom/base/ElementInlines.h b/dom/base/ElementInlines.h index df2cc2e24..ad042e063 100644 --- a/dom/base/ElementInlines.h +++ b/dom/base/ElementInlines.h @@ -8,6 +8,7 @@ #define mozilla_dom_ElementInlines_h #include "mozilla/dom/Element.h" +#include "nsIContentInlines.h" #include "nsIDocument.h" namespace mozilla { -- cgit v1.2.3 From a680bdc637e0393aaa08d575c66f7166b788b443 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 23 Sep 2020 13:55:00 +0000 Subject: Issue #1656 - Part 1: Nuke most vim config lines in the tree. Since these are just interpreted comments, there's 0 impact on actual code. This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are a few others scattered around which will be removed manually in a second part. --- dom/base/ElementInlines.h | 1 - 1 file changed, 1 deletion(-) (limited to 'dom/base/ElementInlines.h') diff --git a/dom/base/ElementInlines.h b/dom/base/ElementInlines.h index ad042e063..16e8c2fc6 100644 --- a/dom/base/ElementInlines.h +++ b/dom/base/ElementInlines.h @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -- cgit v1.2.3