Changeset 15743 for lang/actionscript
- Timestamp:
- 07/13/08 16:39:58 (4 months ago)
- Location:
- lang/actionscript/ascss/src/css
- Files:
-
- 5 modified
-
ASCSS.asy (modified) (2 diffs)
-
CSSLexer.as (modified) (2 diffs)
-
CSSStyleSelector.as (modified) (3 diffs)
-
Document.as (modified) (2 diffs)
-
IPropertyExtension.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/ascss/src/css/ASCSS.asy
r12326 r15743 2142 2142 break; 2143 2143 } 2144 valid_primitive = (id == 0 && validUnit(val, U_FInteger, false)); 2145 break; 2146 2144 2147 /* nobreak */ 2145 2148 case CSSPropertyID.CSSPropertyOrphans: // <integer> | inherit … … 2298 2301 if (mPropertyExtension.isValidPrimitiveValue(propId, val, id, mPropExtHost)) 2299 2302 valid_primitive = true; 2303 2304 if (!valid_primitive && mPropertyExtension.isColorValue(propId)) 2305 { 2306 parsedValue = parseColor(); 2307 if (parsedValue != null) 2308 valueList.next(); 2309 } 2300 2310 } 2301 2311 break; -
lang/actionscript/ascss/src/css/CSSLexer.as
r10752 r15743 54 54 public static const RX_URL2:String = "url\\([ \t\r\n\f]*" +RX_URL+ "[ \t\r\n\f]*\\)" 55 55 56 private static const mRxImportant:RegExp = /^![ \\t\\r\\n\\f]*important/ 57 private static const mRxIntnum:RegExp = /^[0-9]+$/ 56 58 private static const mRxIncludes:RegExp = /^~=/ 57 59 private static const mRxDashMatch:RegExp = /^\|=/ … … 195 197 } 196 198 else if ((rxr = mRxNum.exec(mCurSource)) != null) 199 { 197 200 kw = PARSER.FLOATTOKEN; 201 mTokBody = rxr[0].toString(); 202 advance = mTokBody.length; 203 204 if ((rxr = mRxIntnum.exec(rxr[0])) != null) 205 kw = PARSER.INTEGER; 206 } 207 else if ((rxr = mRxImportant.exec(mCurSource)) != null) 208 kw = PARSER.IMPORTANT_SYM; 198 209 else if ((rxr = mRxIdent.exec(mCurSource)) != null) 199 210 kw = PARSER.IDENT; -
lang/actionscript/ascss/src/css/CSSStyleSelector.as
r12321 r15743 197 197 if (startIndex == -1) 198 198 return; 199 199 200 var i:int; 200 201 for (i = startIndex; i <= endIndex; i++) { … … 312 313 } 313 314 314 p rivatefunction get matchedRulesIsEmpty():Boolean315 public function get matchedRulesIsEmpty():Boolean 315 316 { 316 317 return mMatchedRules.length < 1; … … 354 355 Exl.puts("selector '"+ rule.selector.selectorText +"' matched for <"+localName+">"); 355 356 }*/ 357 356 358 // Add this rule to our list of matched rules. 357 359 addMatchedRule(d); -
lang/actionscript/ascss/src/css/Document.as
r11240 r15743 1 1 package css 2 2 { 3 import cssdom. IASCSSDocument3 import cssdom.*; 4 4 public interface Document 5 5 { … … 11 11 function setUsesDescendantRules(b:Boolean):void; 12 12 function setUsesFirstLineRules(b:Boolean):void; 13 function getElementById(id:String):IASCSSElement; 13 14 14 15 /* -
lang/actionscript/ascss/src/css/IPropertyExtension.as
r11516 r15743 3 3 public interface IPropertyExtension 4 4 { 5 function isColorValue(aPropID:int):Boolean; 5 6 function isValidPrimitiveValue(aPropID:int, aValue:Value, aValueId:int, aHost:IPropertyExtensionHost):Boolean; 6 7 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)