<table><tr><td style="">kossebau added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7580" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Thanks for quick reaction :) Will push now, even if we discovered another item which needs some more clarification. Would do a follow-up fix then if we find one is needed,</p></div></div><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D7580#inline-32797" rel="noreferrer">View Inline</a><span style="color: #4b4d51; font-weight: bold;">dfaure</span> wrote in <span style="color: #4b4d51; font-weight: bold;">svgpart.cpp:191</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">When I reload in konqueror (with KHTML or WebEngine), the yOffset is preserved.<br />
Looking at KonqView::restoreHistory this is because restoreState is only called when reload==false.</p>

<p style="padding: 0; margin: 8px;">It might be a good idea for kate/kdevelop to do the same, they have the actual information of whether reload was pressed, while parts can only guess.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">This is actually another item I am slightly unsure about and you now added to this unsureness. The <a href="https://api.kde.org/frameworks/kparts/html/classKParts_1_1OpenUrlArguments.html#a75c903644fed82bc1982cededcb1c05a" class="remarkup-link" target="_blank" rel="noreferrer">API dox of OpenUrlArguments::reload()</a> flag says:<br />
"part should reload the URL, i.e. the cache shouldn't be used (forced reload). "</p>

<p style="padding: 0; margin: 8px;">So far I asked I would have said this flag responds to whether "If-Modified-Since" should be added to the HTTP request header or that ETag be used (<tt style="background: #ebebeb; font-size: 13px;">reload=false</tt>) or whether not (<tt style="background: #ebebeb; font-size: 13px;">reload=true</tt>). And that "reload" should have rather been named "forcedReload".</p>

<p style="padding: 0; margin: 8px;">So in the case of Kate/KDevelop (or rather the ktexteditor preview plugin, as this is the one who cares about feeding the new document data to the kparts plugin), setting the reload flag to <tt style="background: #ebebeb; font-size: 13px;">true</tt> would mean the forced reload also of embedded document resources, like images, fonts or whatever external resources a document might include, right?<br />
But actually we just want the new version of the text document to be loaded again. Which either</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">is passed via a file, which has a newer filestamp then, thus indicates there is newer data inside, or</li>
<li class="remarkup-list-item">is feed via a data stream, where one would assume the pushing side already made sure only an updated data version is pushed.</li>
</ul>

<p style="padding: 0; margin: 8px;">So previously I would have thought <tt style="background: #ebebeb; font-size: 13px;">reload=false</tt> would be the correct thing to do, as there is no need for forced reload. Have I been missing something?</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R383 SVGPart</div></div></div><br /><div><strong>BRANCH</strong><div><div>supportstreamandreload</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7580" rel="noreferrer">https://phabricator.kde.org/D7580</a></div></div><br /><div><strong>To: </strong>kossebau, Frameworks, dfaure<br /></div>