mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
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
This commit is contained in:
parent
cb2b45e472
commit
a03838af22
14 changed files with 226 additions and 35 deletions
|
|
@ -144,7 +144,14 @@ public:
|
|||
* Skip native anonymous content created for placeholder of HTML input,
|
||||
* used in conjunction with eAllChildren or eAllButXBL.
|
||||
*/
|
||||
eSkipPlaceholderContent = 2
|
||||
eSkipPlaceholderContent = 2,
|
||||
|
||||
/**
|
||||
* Skip native anonymous content created by ancestor frames of the root
|
||||
* element's primary frame, such as scrollbar elements created by the root
|
||||
* scroll frame.
|
||||
*/
|
||||
eSkipDocumentLevelNativeAnonymousContent = 4,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -723,10 +730,9 @@ public:
|
|||
*/
|
||||
inline nsIContent *GetFlattenedTreeParent() const;
|
||||
|
||||
/**
|
||||
* Helper method, which we leave public so that it's accessible from nsINode.
|
||||
*/
|
||||
nsINode *GetFlattenedTreeParentNodeInternal() const;
|
||||
// Helper method, which we leave public so that it's accessible from nsINode.
|
||||
enum FlattenedParentType { eNotForStyle, eForStyle };
|
||||
nsINode* GetFlattenedTreeParentNodeInternal(FlattenedParentType aType) const;
|
||||
|
||||
/**
|
||||
* API to check if this is a link that's traversed in response to user input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue