[Webkit-unassigned] [Bug 79746] Main rendering steps for displaying the cue boxes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 11 20:20:29 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=79746





--- Comment #13 from Eric Carlson <eric.carlson at apple.com>  2012-03-11 20:20:29 PST ---
(In reply to comment #12)
> (In reply to comment #10)
> > 
> > Why not use m_documentFragment directly, getCueAsHTML creates a new fragment every time? If it isn't possible to use m_documentFragment, why do we cache it in getCueAsHTML at all?
> > 
> > Either way, this is an optimization and can be done in a follow up patch.
> Here's my approach:
> * m_documentFragment is cached in getCueAsHTML() because it's faster to clone it, rather than re-parse & re-create it (re-parsing is required only when text contents have changed).
> * m_displayTree is the cached 'internal version' of m_documentFragment for the shadow dom (it gets reprocessed only when m_displayTreeShouldChange is true), which later will have additional styling or other nodes we need for the cue rendering rules.
> 
> This implies that m_documentFragment can't be used directly in m_displayTree because calling getCueAsHTML() needs to have a clean version of it.
> 

  That makes sense. Lets add a comment explaining this the next time this file is modified.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list