Lines Matching refs:wkRect
191 inline WebCore::FloatRect toFloatRect(const WKRect& wkRect)
193 return WebCore::FloatRect(static_cast<float>(wkRect.origin.x), static_cast<float>(wkRect.origin.y),
194 static_cast<float>(wkRect.size.width), static_cast<float>(wkRect.size.height));
207 inline WebCore::IntRect toIntRect(const WKRect& wkRect)
209 return WebCore::IntRect(static_cast<int>(wkRect.origin.x), static_cast<int>(wkRect.origin.y),
210 static_cast<int>(wkRect.size.width), static_cast<int>(wkRect.size.height));
213 inline WKRect toAPI(const WebCore::FloatRect& rect)
215 WKRect wkRect;
216 wkRect.origin.x = rect.x();
217 wkRect.origin.y = rect.y();
218 wkRect.size.width = rect.width();
219 wkRect.size.height = rect.height();
220 return wkRect;
223 inline WKRect toAPI(const WebCore::IntRect& rect)
225 WKRect wkRect;
226 wkRect.origin.x = rect.x();
227 wkRect.origin.y = rect.y();
228 wkRect.size.width = rect.width();
229 wkRect.size.height = rect.height();
230 return wkRect;