mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 972591, part 1 - Remove some trailing whitespace from nsXBLPrototypeBinding. r=bz
This commit is contained in:
parent
82795d3f96
commit
965ff68237
@ -356,7 +356,7 @@ nsXBLPrototypeBinding::AttributeChanged(nsIAtom* aAttribute,
|
||||
else {
|
||||
bool attrPresent = true;
|
||||
nsAutoString value;
|
||||
// Check to see if the src attribute is xbl:text. If so, then we need to obtain the
|
||||
// Check to see if the src attribute is xbl:text. If so, then we need to obtain the
|
||||
// children of the real element and get the text nodes' values.
|
||||
if (aAttribute == nsGkAtoms::text && aNameSpaceID == kNameSpaceID_XBL) {
|
||||
nsContentUtils::GetNodeTextContent(aChangedElement, false, value);
|
||||
@ -366,7 +366,7 @@ nsXBLPrototypeBinding::AttributeChanged(nsIAtom* aAttribute,
|
||||
stripVal.StripWhitespace();
|
||||
if (stripVal.IsEmpty())
|
||||
attrPresent = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
attrPresent = aChangedElement->GetAttr(aNameSpaceID, aAttribute, value);
|
||||
}
|
||||
@ -447,7 +447,7 @@ nsXBLPrototypeBinding::GetImmediateChild(nsIAtom* aTag)
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsXBLPrototypeBinding::InitClass(const nsCString& aClassName,
|
||||
JSContext * aContext,
|
||||
@ -592,7 +592,7 @@ nsXBLPrototypeBinding::GetRuleProcessor()
|
||||
if (mResources) {
|
||||
return mResources->mRuleProcessor;
|
||||
}
|
||||
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -1572,7 +1572,7 @@ nsXBLPrototypeBinding::ReadNamespace(nsIObjectInputStream* aStream,
|
||||
nsAutoString namesp;
|
||||
rv = aStream->ReadString(namesp);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
nsContentUtils::NameSpaceManager()->RegisterNameSpace(namesp, aNameSpaceID);
|
||||
}
|
||||
else {
|
||||
@ -1600,7 +1600,7 @@ nsXBLPrototypeBinding::WriteNamespace(nsIObjectOutputStream* aStream,
|
||||
else {
|
||||
rv = aStream->Write8(XBLBinding_Serialize_CustomNamespace);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
nsAutoString namesp;
|
||||
nsContentUtils::NameSpaceManager()->GetNameSpaceURI(aNameSpaceID, namesp);
|
||||
aStream->WriteWStringZ(namesp.get());
|
||||
@ -1654,7 +1654,7 @@ nsXBLPrototypeBinding::ResolveBaseBinding()
|
||||
bool hasDisplay = !display.IsEmpty();
|
||||
|
||||
nsAutoString value(extends);
|
||||
|
||||
|
||||
// Now slice 'em up to see what we've got.
|
||||
nsAutoString prefix;
|
||||
int32_t offset;
|
||||
|
@ -96,7 +96,7 @@ public:
|
||||
bool* aNew);
|
||||
|
||||
nsresult ConstructInterfaceTable(const nsAString& aImpls);
|
||||
|
||||
|
||||
void SetImplementation(nsXBLProtoImpl* aImpl) { mImplementation = aImpl; }
|
||||
nsXBLProtoImpl* GetImplementation() { return mImplementation; }
|
||||
nsresult InstallImplementation(nsXBLBinding* aBinding);
|
||||
@ -111,13 +111,13 @@ public:
|
||||
|
||||
nsXBLDocumentInfo* XBLDocumentInfo() const { return mXBLDocInfoWeak; }
|
||||
bool IsChrome() { return mXBLDocInfoWeak->IsChrome(); }
|
||||
|
||||
|
||||
void SetInitialAttributes(nsIContent* aBoundElement, nsIContent* aAnonymousContent);
|
||||
|
||||
nsIStyleRuleProcessor* GetRuleProcessor();
|
||||
nsXBLPrototypeResources::sheet_array_type* GetOrCreateStyleSheets();
|
||||
nsXBLPrototypeResources::sheet_array_type* GetStyleSheets();
|
||||
|
||||
|
||||
bool HasStyleSheets() {
|
||||
return mResources && mResources->mStyleSheetList.Length() > 0;
|
||||
}
|
||||
@ -273,9 +273,9 @@ protected:
|
||||
bool mCheckedBaseProto;
|
||||
bool mKeyHandlersRegistered;
|
||||
bool mChromeOnlyContent;
|
||||
|
||||
|
||||
nsXBLPrototypeResources* mResources; // If we have any resources, this will be non-null.
|
||||
|
||||
|
||||
nsXBLDocumentInfo* mXBLDocInfoWeak; // A pointer back to our doc info. Weak, since it owns us.
|
||||
|
||||
nsObjectHashtable* mAttributeTable; // A table for attribute containers. Namespace IDs are used as
|
||||
|
Loading…
Reference in New Issue
Block a user