diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2009-07-13 03:14:38 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2009-07-13 03:14:38 +0000 |
| commit | 5a330554651d1db806fb4b2b92372ba0d6cf80d4 (patch) | |
| tree | f12586645bb4c7d362abc35cca96a65276305ecf /src | |
| parent | Finish translate of live path effects and filters (diff) | |
| download | inkscape-5a330554651d1db806fb4b2b92372ba0d6cf80d4.tar.gz inkscape-5a330554651d1db806fb4b2b92372ba0d6cf80d4.zip | |
doc: add TODO comment for handling hrefs better.
(bzr r8271)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-filter-image.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/display/nr-filter-image.cpp b/src/display/nr-filter-image.cpp index 9679e56e7..2b799f8d2 100644 --- a/src/display/nr-filter-image.cpp +++ b/src/display/nr-filter-image.cpp @@ -107,6 +107,13 @@ int FilterImage::render(FilterSlot &slot, FilterUnits const &units) { if (!image_pixbuf){ try { + /* TODO: If feImageHref is absolute, then use that (preferably handling the + * case that it's not a file URI). Otherwise, go up the tree looking + * for an xml:base attribute, and use that as the base URI for resolving + * the relative feImageHref URI. Otherwise, if document && document->base, + * then use that as the base URI. Otherwise, use feImageHref directly + * (i.e. interpreting it as relative to our current working directory). + * (See http://www.w3.org/TR/xmlbase/#resolution .) */ gchar *fullname = feImageHref; if ( !g_file_test( fullname, G_FILE_TEST_EXISTS ) ) { // Try to load from relative postion combined with document base |
