Drop instance times (directly) sourced from the attribute when (re)parsing
Since we (now) know which instance times originated as offset-values in the attribute, we can clear those out before (re)parsing the attribute, rather than keeping a set of existing times and filter against those. The only potential downside is that this filtering step is O(n^2). When doing this we can also remove the HashTraits and associated bits for hashing SMILTimes. Also start exposing the origin from SMILTimeWithOrigin directly and change the (few) users. Adding of the implicit '0s' begin-time is now also done in ParseBeginOrEnd if needed since it is also treated as having 'attribute' origin. Bug: 1005185 Change-Id: I3bdf6a099d5853683cbbb516d8778e587353c3bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818481 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#699430}
Showing
Please register or sign in to comment