mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Merge for backout of changeset aeb2d5550890
This commit is contained in:
commit
df3fa043aa
@ -39,8 +39,6 @@
|
|||||||
|
|
||||||
#include "Link.h"
|
#include "Link.h"
|
||||||
|
|
||||||
#include "nsIEventStateManager.h"
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace dom {
|
namespace dom {
|
||||||
|
|
||||||
@ -61,20 +59,6 @@ Link::SetLinkState(nsLinkState aState)
|
|||||||
mLinkState = aState;
|
mLinkState = aState;
|
||||||
}
|
}
|
||||||
|
|
||||||
PRInt32
|
|
||||||
Link::LinkState() const
|
|
||||||
{
|
|
||||||
if (mLinkState == eLinkState_Visited) {
|
|
||||||
return NS_EVENT_STATE_VISITED;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mLinkState == eLinkState_Unvisited) {
|
|
||||||
return NS_EVENT_STATE_UNVISITED;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Link::ResetLinkState()
|
Link::ResetLinkState()
|
||||||
{
|
{
|
||||||
|
@ -57,13 +57,6 @@ public:
|
|||||||
virtual nsLinkState GetLinkState() const;
|
virtual nsLinkState GetLinkState() const;
|
||||||
virtual void SetLinkState(nsLinkState aState);
|
virtual void SetLinkState(nsLinkState aState);
|
||||||
|
|
||||||
/**
|
|
||||||
* @return NS_EVENT_STATE_VISITED if this link is visited,
|
|
||||||
* NS_EVENT_STATE_UNVISTED if this link is not visited, or 0 if this
|
|
||||||
* link is not actually a link.
|
|
||||||
*/
|
|
||||||
PRInt32 LinkState() const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* Invalidates any link caching, and resets the state to the default.
|
* Invalidates any link caching, and resets the state to the default.
|
||||||
|
Loading…
Reference in New Issue
Block a user