This source file includes following definitions.
- node
- localPoint
- urlElement
- absoluteImageURL
- absoluteLinkURL
- isContentEditable
- isNull
- assign
- reset
#include "config.h"
#include "WebHitTestResult.h"
#include "WebElement.h"
#include "WebNode.h"
#include "core/dom/Element.h"
#include "core/dom/Node.h"
#include "core/editing/VisiblePosition.h"
#include "core/rendering/HitTestResult.h"
#include "core/rendering/RenderObject.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebURL.h"
using namespace WebCore;
namespace blink {
WebNode WebHitTestResult::node() const
{
return WebNode(m_private->innerNode());
}
WebPoint WebHitTestResult::localPoint() const
{
return roundedIntPoint(m_private->localPoint());
}
WebElement WebHitTestResult::urlElement() const
{
return WebElement(m_private->URLElement());
}
WebURL WebHitTestResult::absoluteImageURL() const
{
return m_private->absoluteImageURL();
}
WebURL WebHitTestResult::absoluteLinkURL() const
{
return m_private->absoluteLinkURL();
}
bool WebHitTestResult::isContentEditable() const
{
return m_private->isContentEditable();
}
WebHitTestResult::WebHitTestResult(const HitTestResult& result)
{
m_private.reset(new HitTestResult(result));
}
WebHitTestResult& WebHitTestResult::operator=(const HitTestResult& result)
{
m_private.reset(new HitTestResult(result));
return *this;
}
WebHitTestResult::operator HitTestResult() const
{
return *m_private.get();
}
bool WebHitTestResult::isNull() const
{
return !m_private.get();
}
void WebHitTestResult::assign(const WebHitTestResult& info)
{
m_private.reset(new HitTestResult(info));
}
void WebHitTestResult::reset()
{
m_private.reset(0);
}
}