Changeset 16045 for lang/actionscript
- Timestamp:
- 07/20/08 03:44:05 (4 months ago)
- Location:
- lang/actionscript/ascss/src
- Files:
-
- 2 modified
-
KyotoDemo.as (modified) (4 diffs)
-
KyotoDemo.swf (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/ascss/src/KyotoDemo.as
r16000 r16045 18 18 private var LogoEmbed:Class; 19 19 20 public static const LINEHEIGHT:int = 35; 20 private var LINEHEIGHT:Number = 35; 21 private var mPrevCalcLines:int = 0; 21 22 public static const GRAD_COLORS:Array = [0x111111, 0x333333, 0x555555]; 22 23 public static const GRAD_ALPHAS:Array = [1, 1, 1]; … … 172 173 createSelectorMarkers(parser.sheet); 173 174 mStyleSheet = parser.sheet; 175 176 calcLineHeight(); 174 177 showSelectorMarkers(); 175 178 … … 188 191 } 189 192 193 calcLineHeight(); 190 194 showElementMarkers(); 191 195 192 196 doMatching(); 197 } 198 199 private function calcLineHeight():void 200 { 201 var h:int = mXMLField.textHeight; 202 var maxl:int = mXMLField.numLines; 203 if (mCSSField.numLines > maxl) 204 { 205 maxl = mCSSField.numLines; 206 h = mCSSField.textHeight; 207 } 208 209 if (maxl > mPrevCalcLines && maxl > 0) 210 { 211 LINEHEIGHT = Number(h) / Number(maxl); 212 } 193 213 } 194 214 … … 431 451 { 432 452 var rs:RenderStyle = ed.wrapper.renderStyle; 433 var color:uint = lookupColorValue(rs, 0 xffffffff, CSSPropertyID.CSSPropertyColor);453 var color:uint = lookupColorValue(rs, 0, CSSPropertyID.CSSPropertyColor); 434 454 var bgcolor:uint = lookupColorValue(rs, 0, CSSPropertyID.CSSPropertyBackgroundColor); 435 455 var bgurl:String = null;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)