(blip)
| 1226 | } |
| 1227 | |
| 1228 | function findBlipImageFile(blip) { |
| 1229 | var embedRelationshipId = blip.attributes["r:embed"]; |
| 1230 | var linkRelationshipId = blip.attributes["r:link"]; |
| 1231 | if (embedRelationshipId) { |
| 1232 | return findEmbeddedImageFile(embedRelationshipId); |
| 1233 | } else { |
| 1234 | var imagePath = relationships.findTargetByRelationshipId(linkRelationshipId); |
| 1235 | return { |
| 1236 | path: imagePath, |
| 1237 | read: files.read.bind(files, imagePath) |
| 1238 | }; |
| 1239 | } |
| 1240 | } |
| 1241 | |
| 1242 | function readImageData(element) { |
| 1243 | var relationshipId = element.attributes['r:id']; |
no test coverage detected