MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / RectHasNonZeroDimensions

Method RectHasNonZeroDimensions

cpp/iedriver/Element.cpp:1215–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1213}
1214
1215bool Element::RectHasNonZeroDimensions(IHTMLRect* rect) {
1216 LOG(TRACE) << "Entering Element::RectHasNonZeroDimensions";
1217
1218 long top = 0, bottom = 0, left = 0, right = 0;
1219
1220 rect->get_top(&top);
1221 rect->get_left(&left);
1222 rect->get_bottom(&bottom);
1223 rect->get_right(&right);
1224
1225 long w = right - left;
1226 long h = bottom - top;
1227
1228 return w > 0 && h > 0;
1229}
1230
1231bool Element::AppendFrameDetails(std::vector<LocationInfo>* frame_locations) {
1232 LOG(TRACE) << "Entering Element::GetFrameDetails";

Callers

nothing calls this directly

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected