Bug 1285474: stylo: Add dirtiness-tracking hooks for Servo and convenient methods. r=bholley
Also, guard with asserts the access to the new shared flags. MozReview-Commit-ID: H9UFFHRPmiu
This commit is contained in:
@@ -311,7 +311,7 @@ nsGenericDOMDataNode::SetTextInternal(uint32_t aOffset, uint32_t aCount,
|
||||
if (haveMutationListeners) {
|
||||
oldValue = GetCurrentValueAtom();
|
||||
}
|
||||
|
||||
|
||||
if (aNotify) {
|
||||
CharacterDataChangeInfo info = {
|
||||
aOffset == textLength,
|
||||
@@ -484,7 +484,7 @@ nsGenericDOMDataNode::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||
"Already have a binding parent. Unbind first!");
|
||||
NS_PRECONDITION(aBindingParent != this,
|
||||
"Content must not be its own binding parent");
|
||||
NS_PRECONDITION(!IsRootOfNativeAnonymousSubtree() ||
|
||||
NS_PRECONDITION(!IsRootOfNativeAnonymousSubtree() ||
|
||||
aBindingParent == aParent,
|
||||
"Native anonymous content must have its parent as its "
|
||||
"own binding parent");
|
||||
@@ -540,7 +540,7 @@ nsGenericDOMDataNode::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||
ClearSubtreeRootPointer();
|
||||
|
||||
// XXX See the comment in Element::BindToTree
|
||||
SetInDocument();
|
||||
SetIsInDocument();
|
||||
if (mText.IsBidi()) {
|
||||
aDocument->SetBidiEnabled();
|
||||
}
|
||||
@@ -805,7 +805,7 @@ nsGenericDOMDataNode::List(FILE* out, int32_t aIndent) const
|
||||
|
||||
void
|
||||
nsGenericDOMDataNode::DumpContent(FILE* out, int32_t aIndent,
|
||||
bool aDumpAll) const
|
||||
bool aDumpAll) const
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user