Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88B6B1045D for ; Mon, 11 Nov 2013 01:28:17 +0000 (UTC) Received: (qmail 34702 invoked by uid 500); 11 Nov 2013 01:28:17 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 34682 invoked by uid 500); 11 Nov 2013 01:28:17 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 34675 invoked by uid 99); 11 Nov 2013 01:28:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 01:28:17 +0000 Date: Mon, 11 Nov 2013 01:28:17 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33889) CSSStyleDeclaration->createProtoChainRoot() is obsolete MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818647#comment-13818647 ] Justin Mclean commented on FLEX-33889: -------------------------------------- It's not in use by the framework that I can see either. However there's a small chance it could still be used by 3rd party code. > CSSStyleDeclaration->createProtoChainRoot() is obsolete > ------------------------------------------------------- > > Key: FLEX-33889 > URL: https://issues.apache.org/jira/browse/FLEX-33889 > Project: Apache Flex > Issue Type: Improvement > Components: Styles > Affects Versions: Apache Flex 4.11.0 > Reporter: Danko Kozar > Priority: Trivial > Labels: CSSStyleDeclaration, StyleManager, css, quickfix, style,, stylesheet,, styling, > Original Estimate: 2m > Remaining Estimate: 2m > > CSSStyleDeclaration->createProtoChainRoot() is obsolete (it seems since Macromedia days). :) > This is an "mx_internal" method, and couldn't find any references by the framework itself. Am I right? > Another method is used (for initializing the styles root) instead: SystemManagerImpl->initProtoChainRoots() > Here's the actual method to remove: > /** > * @private > */ > mx_internal function createProtoChainRoot():Object > { > var root:Object = {}; > // If there's a defaultFactory for this style sheet, > // then add the object it produces to the root. > if (defaultFactory != null) > { > defaultFactory.prototype = root; > root = new defaultFactory(); > } > // If there's a factory for this style sheet, > // then add the object it produces to the root. > if (factory != null) > { > factory.prototype = root; > root = new factory(); > } > clones[ root ] = 1; > > return root; > } -- This message was sent by Atlassian JIRA (v6.1#6144)