зеркало из https://github.com/mozilla/pjs.git
Bug 747516 - Admit mozilla::dom::Link into a weight loss program; r=bz
This commit is contained in:
Родитель
42c78c125e
Коммит
cbb01d0bcd
|
@ -55,10 +55,10 @@ namespace mozilla {
|
|||
namespace dom {
|
||||
|
||||
Link::Link(Element *aElement)
|
||||
: mLinkState(defaultState)
|
||||
, mRegistered(false)
|
||||
, mElement(aElement)
|
||||
: mElement(aElement)
|
||||
, mHistory(services::GetHistoryService())
|
||||
, mLinkState(defaultState)
|
||||
, mRegistered(false)
|
||||
{
|
||||
NS_ABORT_IF_FALSE(mElement, "Must have an element");
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ Link::GetLinkState() const
|
|||
"Getting the link state of an unregistered Link!");
|
||||
NS_ASSERTION(mLinkState != eLinkState_Unknown,
|
||||
"Getting the link state with an unknown value!");
|
||||
return mLinkState;
|
||||
return nsLinkState(mLinkState);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -149,17 +149,17 @@ private:
|
|||
already_AddRefed<nsIURI> GetURIToMutate();
|
||||
void SetHrefAttribute(nsIURI *aURI);
|
||||
|
||||
nsLinkState mLinkState;
|
||||
|
||||
mutable nsCOMPtr<nsIURI> mCachedURI;
|
||||
|
||||
bool mRegistered;
|
||||
|
||||
Element * const mElement;
|
||||
|
||||
// Strong reference to History. The link has to unregister before History
|
||||
// can disappear.
|
||||
nsCOMPtr<IHistory> mHistory;
|
||||
|
||||
PRUint16 mLinkState;
|
||||
|
||||
bool mRegistered;
|
||||
};
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(Link, MOZILLA_DOM_LINK_IMPLEMENTATION_IID)
|
||||
|
|
Загрузка…
Ссылка в новой задаче