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

Method IsInline

cpp/iedriver/Element.cpp:1188–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1186}
1187
1188bool 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
1215bool Element::RectHasNonZeroDimensions(IHTMLRect* rect) {
1216 LOG(TRACE) << "Entering Element::RectHasNonZeroDimensions";

Callers 2

IsObscuredMethod · 0.95
GetLocationMethod · 0.95

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected