public void ClearCacheContent()
 {
     specLevels.Clear();
     this.currentSpecLevel = 0;
     specLevels.Add(new BoxSpecLevel(0));
     this.ustrTable = new UniqueStringTable();
 }
Пример #2
0
 internal HtmlDocument(UniqueStringTable sharedUniqueStringTable)
     : base(sharedUniqueStringTable)
 {
     //default root
     this.SetRootElement(new HtmlRootElement(this));
     //TODO: test only
     this.RegisterCustomElement("fivespace", CustomBoxGenSample1.CreateCssBox);
 }
Пример #3
0
        public UniqueStringTable Clone()
        {
            UniqueStringTable        newClone = new UniqueStringTable();
            Dictionary <string, int> cloneDic = newClone.dic;

            cloneDic.Clear();
            foreach (KeyValuePair <string, int> kp in this.dic)
            {
                cloneDic.Add(kp.Key, kp.Value);
            }
            newClone.list.Clear();
            newClone.list.AddRange(list);
            return(newClone);
        }
Пример #4
0
 public WebDocument(UniqueStringTable uniqueStringTable)
 {
     this.uniqueStringTable = uniqueStringTable;
     this.DocumentState     = WebDom.DocumentState.Init;
 }
Пример #5
0
 public WebDocument(UniqueStringTable uniqueStringTable)
 {
     this.uniqueStringTable = uniqueStringTable;
     this.DocumentState = WebDom.DocumentState.Init;
 }
Пример #6
0
        public UniqueStringTable Clone()
        {
            UniqueStringTable newClone = new UniqueStringTable();
            Dictionary<string, int> cloneDic = newClone.dic;
            cloneDic.Clear();
            foreach (KeyValuePair<string, int> kp in this.dic)
            {
                cloneDic.Add(kp.Key, kp.Value);
            }
            newClone.list.Clear();
            newClone.list.AddRange(list);

            return newClone;
        }