mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1220502 - ignore not visible text nodes for tree update, r=tbsaunde, roc
This commit is contained in:
parent
36c1224fd8
commit
cf03195102
@ -122,7 +122,14 @@ public:
|
|||||||
*/
|
*/
|
||||||
inline void ScheduleTextUpdate(nsIContent* aTextNode)
|
inline void ScheduleTextUpdate(nsIContent* aTextNode)
|
||||||
{
|
{
|
||||||
if (mTextHash.PutEntry(aTextNode))
|
// Make sure we are not called with a node that is not in the DOM tree or
|
||||||
|
// not visible.
|
||||||
|
MOZ_ASSERT(aTextNode->GetParentNode(), "A text node is not in DOM");
|
||||||
|
MOZ_ASSERT(aTextNode->GetPrimaryFrame(), "A text node doesn't have a frame");
|
||||||
|
MOZ_ASSERT(aTextNode->GetPrimaryFrame()->StyleVisibility()->IsVisible(),
|
||||||
|
"A text node is not visible");
|
||||||
|
|
||||||
|
mTextHash.PutEntry(aTextNode);
|
||||||
ScheduleProcessing();
|
ScheduleProcessing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8498,7 +8498,9 @@ nsTextFrame::ReflowText(nsLineLayout& aLineLayout, nscoord aAvailableWidth,
|
|||||||
|
|
||||||
#ifdef ACCESSIBILITY
|
#ifdef ACCESSIBILITY
|
||||||
// Schedule the update of accessible tree since rendered text might be changed.
|
// Schedule the update of accessible tree since rendered text might be changed.
|
||||||
|
if (StyleVisibility()->IsVisible()) {
|
||||||
ReflowTextA11yNotifier(presContext, mContent);
|
ReflowTextA11yNotifier(presContext, mContent);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user