// Token: 0x060012D2 RID: 4818 RVA: 0x0008569C File Offset: 0x0008389C
        public FormatStyle RegisterStyle(bool isStatic, out StyleBuilder builder)
        {
            FormatStyle result = this.Store.AllocateStyle(isStatic);

            builder = new StyleBuilder(this, result.Handle);
            return(result);
        }
        // Token: 0x06001BC7 RID: 7111 RVA: 0x000D5344 File Offset: 0x000D3544
        public void AddStyle(int precedence, int handle)
        {
            int         entry = this.GetEntry(precedence);
            FormatStyle style = this.Store.GetStyle(handle);

            this.entries[entry].FlagProperties.Merge(style.FlagProperties);
            Property[] propertyList = style.PropertyList;
            if (propertyList != null)
            {
                foreach (Property property in propertyList)
                {
                    if (property.Value.IsRefCountedHandle)
                    {
                        this.Store.AddRefValue(property.Value);
                    }
                    this.SetPropertyImpl(entry, property.Id, property.Value);
                }
            }
        }
Exemplo n.º 3
0
        public FormatConverterContainer OpenContainer(FormatContainerType nodeType, bool empty, int inheritanceMaskIndex, FormatStyle baseStyle, HtmlNameIndex tagName)
        {
            if (!this.ContainerFlushed)
            {
                this.FlushContainer(this.EmptyContainer ? this.BuildStackTop : (this.BuildStackTop - 1));
            }
            if (this.EmptyContainer)
            {
                this.PrepareToCloseContainer(this.BuildStackTop);
            }
            int num = this.PushContainer(nodeType, empty, inheritanceMaskIndex);

            if (!baseStyle.IsNull)
            {
                baseStyle.AddRef();
                this.ContainerStyleBuildHelper.AddStyle(10, baseStyle.Handle);
            }
            this.BuildStack[num].TagName = tagName;
            return(new FormatConverterContainer(this, num));
        }
Exemplo n.º 4
0
 // Token: 0x06001BA9 RID: 7081 RVA: 0x000D4EA4 File Offset: 0x000D30A4
 public void SetStyleReference(int stylePrecedence, FormatStyle style)
 {
     this.converter.ContainerStyleBuildHelper.AddStyle(stylePrecedence, style.Handle);
 }