1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Merge pull request #4374 from yurydelendik/dictgetall

Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict GC
This commit is contained in:
Brendan Dahl 2014-04-08 10:43:42 -07:00
commit 608c6cea5a
7 changed files with 93 additions and 18 deletions

View file

@ -378,7 +378,7 @@ var WidgetAnnotation = (function WidgetAnnotationClosure() {
var fieldType = Util.getInheritableProperty(dict, 'FT');
data.fieldType = isName(fieldType) ? fieldType.name : '';
data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
this.fieldResources = Util.getInheritableProperty(dict, 'DR') || new Dict();
this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
// Building the full field name by collecting the field and
// its ancestors 'T' data and joining them using '.'.