| 1186 | } |
| 1187 | |
| 1188 | bool Element::IsInline() { |
| 1189 | LOG(TRACE) << "Entering Element::IsInline"; |
| 1190 | |
| 1191 | // TODO(jimevans): Clean up this extreme lameness. |
| 1192 | // We should be checking styles here for whether the |
| 1193 | // element is inline or not. |
| 1194 | CComPtr<IHTMLAnchorElement> anchor; |
| 1195 | HRESULT hr = this->element_->QueryInterface(&anchor); |
| 1196 | if (anchor) { |
| 1197 | return true; |
| 1198 | } |
| 1199 | |
| 1200 | CComPtr<IHTMLSpanElement> span; |
| 1201 | hr = this->element_->QueryInterface(&span); |
| 1202 | if (span) { |
| 1203 | return true; |
| 1204 | } |
| 1205 | |
| 1206 | CComPtr<IHTMLLabelElement> label; |
| 1207 | hr = this->element_->QueryInterface(&label); |
| 1208 | if (label) { |
| 1209 | return true; |
| 1210 | } |
| 1211 | |
| 1212 | return false; |
| 1213 | } |
| 1214 | |
| 1215 | bool Element::RectHasNonZeroDimensions(IHTMLRect* rect) { |
| 1216 | LOG(TRACE) << "Entering Element::RectHasNonZeroDimensions"; |
no test coverage detected