@@ -431,20 +431,6 @@ private ITagWorker processRunningElement(ITagWorker tagWorker, IElementNode elem
431431 return tagWorker ;
432432 }
433433
434- // TODO For now the whole ITagWorker of the running element is preserved inside RunningElementContainer
435- // for the sake of future processing in page margin box. This is somewhat a workaround and storing
436- // tag workers might be easily seen as something undesirable, however at least for now it seems to be
437- // most suitable solution because:
438- // - in any case, processing of the whole running element with it's children should be done in
439- // "normal flow", i.e. in DefaultHtmlProcessor, based on the spec that says that element should be
440- // processed as it was still in the same position in DOM, but visually as if "display: none" was set.
441- // - the whole process would need to be repeated in PageContextProcessor again, so it's a double work;
442- // also currently there is still no convenient way for unifying the processing here and in
443- // PageContextProcessor, currently only running elements require processing of the whole hierarchy of
444- // children outside of the default DOM processing and also it's unclear whether this code would be suitable
445- // for the simplified approach of processing all other children of page margin boxes.
446- // - ITagWorker is only publicly passed to the constructor, but there is no exposed way to get it out of
447- // RunningElementContainer, so it would be fairly easy to change this approach in future if needed.
448434 RunningElementContainer runningElementContainer = new RunningElementContainer (element , tagWorker );
449435 context .getCssContext ().getRunningManager ().addRunningElement (runningElemName , runningElementContainer );
450436
@@ -455,7 +441,6 @@ private ITagWorker processRunningElement(ITagWorker tagWorker, IElementNode elem
455441 * Adds @font-face fonts to the FontProvider.
456442 */
457443 private void addFontFaceFonts () {
458- //TODO Shall we add getFonts() to ICssResolver?
459444 if (cssResolver instanceof DefaultCssResolver ) {
460445 for (CssFontFaceRule fontFace : ((DefaultCssResolver ) cssResolver ).getFonts ()) {
461446 boolean findSupportedSrc = false ;
0 commit comments