1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

WebHitTestResult: Resolve image url

This commit is contained in:
David Rosca 2015-10-09 15:57:35 +02:00
parent 258d78a247
commit df487f0726

View File

@ -170,6 +170,8 @@ void WebHitTestResult::init(const QUrl &url, const QVariantMap &map)
if (rect.size() == 4) if (rect.size() == 4)
m_boundingRect = QRect(rect.at(0).toInt(), rect.at(1).toInt(), rect.at(2).toInt(), rect.at(3).toInt()); m_boundingRect = QRect(rect.at(0).toInt(), rect.at(1).toInt(), rect.at(2).toInt(), rect.at(3).toInt());
if (!m_imageUrl.isEmpty())
m_imageUrl = url.resolved(m_imageUrl);
if (!m_linkUrl.isEmpty()) if (!m_linkUrl.isEmpty())
m_linkUrl = url.resolved(m_linkUrl); m_linkUrl = url.resolved(m_linkUrl);
if (!m_mediaUrl.isEmpty()) if (!m_mediaUrl.isEmpty())