diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 06:09:37 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 06:09:37 -0400 |
commit | 53428ad3f04ff1e01f0596ef0c592bdbe5fdd15b (patch) | |
tree | 7eda1d51e148d7dae5d02c143af323e78e4fe92f /layout/generic/DetailsFrame.h | |
parent | 0c99ad16fbb5c3b90ee140235159f9a0ee72397b (diff) | |
download | UXP-53428ad3f04ff1e01f0596ef0c592bdbe5fdd15b.tar UXP-53428ad3f04ff1e01f0596ef0c592bdbe5fdd15b.tar.gz UXP-53428ad3f04ff1e01f0596ef0c592bdbe5fdd15b.tar.lz UXP-53428ad3f04ff1e01f0596ef0c592bdbe5fdd15b.tar.xz UXP-53428ad3f04ff1e01f0596ef0c592bdbe5fdd15b.zip |
Bug 1377648 - Fix HTMLSummaryElement::IsSummary() on removing the element
* Use inFlowFrame to check the target frame is summary and its parent is details
* Check summary frame instead of summary element on removing the summary
Tag #1375
Diffstat (limited to 'layout/generic/DetailsFrame.h')
-rw-r--r-- | layout/generic/DetailsFrame.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/generic/DetailsFrame.h b/layout/generic/DetailsFrame.h index 1eb4ea87b..4ae177f16 100644 --- a/layout/generic/DetailsFrame.h +++ b/layout/generic/DetailsFrame.h @@ -54,6 +54,12 @@ public: void AppendAnonymousContentTo(nsTArray<nsIContent*>& aElements, uint32_t aFilter) override; + // Returns true if |aSummaryFrame| is the main summary (i.e. the first child + // of this details frame). + // This function is used when the summary element is removed from the parent + // details element since at that moment the summary element has been already + // removed from the details element children. + bool HasMainSummaryFrame(nsIFrame* aSummaryFrame); private: nsCOMPtr<nsIContent> mDefaultSummary; |