| 1213 | } |
| 1214 | |
| 1215 | bool 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 | |
| 1231 | bool Element::AppendFrameDetails(std::vector<LocationInfo>* frame_locations) { |
| 1232 | LOG(TRACE) << "Entering Element::GetFrameDetails"; |