// Token: 0x060012A7 RID: 4775 RVA: 0x00084750 File Offset: 0x00082950
 public void StartPropertyName()
 {
     if (this.cssToken.PropertyTail == this.cssToken.PropertyList.Length)
     {
         int num;
         if (this.maxProperties / 2 > this.cssToken.PropertyList.Length)
         {
             num = this.cssToken.PropertyList.Length * 2;
         }
         else
         {
             num = this.maxProperties;
         }
         CssToken.PropertyEntry[] array = new CssToken.PropertyEntry[num];
         Array.Copy(this.cssToken.PropertyList, 0, array, 0, this.cssToken.PropertyTail);
         this.cssToken.PropertyList = array;
     }
     if (this.cssToken.PartMinor == CssToken.PropertyListPartMinor.Empty)
     {
         this.cssToken.PartMinor = CssToken.PropertyListPartMinor.BeginProperty;
     }
     this.cssToken.PropertyList[this.cssToken.PropertyTail].NameId    = CssNameIndex.Unknown;
     this.cssToken.PropertyList[this.cssToken.PropertyTail].PartMajor = CssToken.PropertyPartMajor.Begin;
     this.cssToken.PropertyList[this.cssToken.PropertyTail].PartMinor = CssToken.PropertyPartMinor.BeginName;
     this.cssToken.PropertyList[this.cssToken.PropertyTail].QuoteChar = 0;
     this.cssToken.PropertyList[this.cssToken.PropertyTail].Name.Initialize(this.cssToken.Whole.Tail, this.tailOffset);
     this.cssToken.PropertyList[this.cssToken.PropertyTail].Value.Reset();
     this.state = 44;
 }
Esempio n. 2
0
        public void StartPropertyName()
        {
            if (this.cssToken.propertyTail == this.cssToken.propertyList.Length)
            {
                InternalDebug.Assert(this.cssToken.propertyList.Length < this.maxProperties);

                int newSize;

                if (this.maxProperties / 2 > this.cssToken.propertyList.Length)
                {
                    newSize = this.cssToken.propertyList.Length * 2;
                }
                else
                {
                    newSize = this.maxProperties;
                }

                CssToken.PropertyEntry[] newProperties = new CssToken.PropertyEntry[newSize];

                Array.Copy(this.cssToken.propertyList, 0, newProperties, 0, this.cssToken.propertyTail);

                this.cssToken.propertyList = newProperties;
            }

            InternalDebug.Assert(this.cssToken.propertyTail < this.cssToken.propertyList.Length);
            InternalDebug.Assert(this.state == BuildStateBeforeProperty);

            InternalDebug.Assert(this.cssToken.partMinor == CssToken.PropertyListPartMinor.Empty ||
                                 this.cssToken.partMinor == CssToken.PropertyListPartMinor.EndProperty ||
                                 this.cssToken.partMinor == CssToken.PropertyListPartMinor.EndPropertyWithOtherProperties ||
                                 this.cssToken.partMinor == CssToken.PropertyListPartMinor.Properties);

            if (this.cssToken.partMinor == CssToken.PropertyListPartMinor.Empty)
            {
                this.cssToken.partMinor = CssToken.PropertyListPartMinor.BeginProperty;
            }

            this.cssToken.propertyList[this.cssToken.propertyTail].nameId    = CssNameIndex.Unknown;
            this.cssToken.propertyList[this.cssToken.propertyTail].partMajor = CssToken.PropertyPartMajor.Begin;
            this.cssToken.propertyList[this.cssToken.propertyTail].partMinor = CssToken.PropertyPartMinor.BeginName;
            this.cssToken.propertyList[this.cssToken.propertyTail].quoteChar = 0;
            this.cssToken.propertyList[this.cssToken.propertyTail].name.Initialize(this.cssToken.whole.tail, this.tailOffset);
            this.cssToken.propertyList[this.cssToken.propertyTail].value.Reset();

            this.state = BuildStatePropertyName;
        }
Esempio n. 3
0
        public void StartPropertyName()
        {
            if (cssToken.propertyTail == cssToken.propertyList.Length)
            {
                InternalDebug.Assert(cssToken.propertyList.Length < maxProperties);

                int newSize;

                if (maxProperties / 2 > cssToken.propertyList.Length)
                {
                    newSize = cssToken.propertyList.Length * 2;
                }
                else
                {
                    newSize = maxProperties;
                }

                var newProperties = new CssToken.PropertyEntry[newSize];

                Array.Copy(cssToken.propertyList, 0, newProperties, 0, cssToken.propertyTail);

                cssToken.propertyList = newProperties;
            }

            InternalDebug.Assert(cssToken.propertyTail < cssToken.propertyList.Length);
            InternalDebug.Assert(state == BuildStateBeforeProperty);

            InternalDebug.Assert(cssToken.partMinor == CssToken.PropertyListPartMinor.Empty ||
                                 cssToken.partMinor == CssToken.PropertyListPartMinor.EndProperty ||
                                 cssToken.partMinor == CssToken.PropertyListPartMinor.EndPropertyWithOtherProperties ||
                                 cssToken.partMinor == CssToken.PropertyListPartMinor.Properties);

            if (cssToken.partMinor == CssToken.PropertyListPartMinor.Empty)
            {
                cssToken.partMinor = CssToken.PropertyListPartMinor.BeginProperty;
            }

            cssToken.propertyList[cssToken.propertyTail].nameId    = CssNameIndex.Unknown;
            cssToken.propertyList[cssToken.propertyTail].partMajor = CssToken.PropertyPartMajor.Begin;
            cssToken.propertyList[cssToken.propertyTail].partMinor = CssToken.PropertyPartMinor.BeginName;
            cssToken.propertyList[cssToken.propertyTail].quoteChar = 0;
            cssToken.propertyList[cssToken.propertyTail].name.Initialize(cssToken.whole.tail, tailOffset);
            cssToken.propertyList[cssToken.propertyTail].value.Reset();

            state = BuildStatePropertyName;
        }