Lines Matching refs:this

70         $this->parser    =& $css;
71 $this->css =& $css->css;
72 $this->template =& $css->template;
73 $this->tokens =& $css->tokens;
74 $this->charset =& $css->charset;
75 $this->import =& $css->import;
76 $this->namespace =& $css->namespace;
86 $this->output_css = '';
87 $this->output_css_plain = '';
98 $this->_print(true);
99 return $this->output_css_plain;
110 $this->_print(false);
111 return $this->output_css;
122 if ($this->output_css && $this->output_css_plain) {
127 if (!$this->parser->get_cfg('preserve_css')) {
128 $this->_convert_raw_css();
131 $template =& $this->template;
137 if ($this->parser->get_cfg('timestamp')) {
138 …array_unshift($this->tokens, array(COMMENT, ' CSSTidy ' . $this->parser->version . ': ' . date('r'…
141 if (!empty($this->charset)) {
142 $output .= $template[0].'@charset '.$template[5].$this->charset.$template[6];
145 if (!empty($this->import)) {
146 for ($i = 0, $size = count($this->import); $i < $size; $i ++) {
147 $output .= $template[0].'@import '.$template[5].$this->import[$i].$template[6];
151 if (!empty($this->namespace)) {
152 $output .= $template[0].'@namespace '.$template[5].$this->namespace.$template[6];
159 foreach ($this->tokens as $key => $token)
164 $out .= $template[0].$this->_htmlsp($token[1], $plain).$template[1];
169 if($this->parser->get_cfg('lowercase_s')) $token[1] = strtolower($token[1]);
170 …$out .= ($token[1]{0} !== '@') ? $template[2].$this->_htmlsp($token[1], $plain) : $template[0].$th…
175 … if($this->parser->get_cfg('case_properties') == 2) $token[1] = strtoupper($token[1]);
176 … if($this->parser->get_cfg('case_properties') == 1) $token[1] = strtolower($token[1]);
177 $out .= $template[4] . $this->_htmlsp($token[1], $plain) . ':' . $template[5];
181 $out .= $this->_htmlsp($token[1], $plain);
182 … if($this->_seeknocomment($key, 1) == SEL_END && $this->parser->get_cfg('remove_last_;')) {
191 if($this->_seeknocomment($key, 1) != AT_END) $out .= $template[8];
202 … $out .= $template[11] . '/*' . $this->_htmlsp($token[1], $plain) . '*/' . $template[12];
210 $this->output_css = $output;
211 $this->_print(true);
213 $this->output_css_plain = $output;
228 if (!isset($this->tokens[$i])) {
231 if ($this->tokens[$i][0] == COMMENT) {
235 return $this->tokens[$i][0];
246 $this->tokens = array();
247 ksort($this->css);
249 foreach ($this->css as $medium => $val)
251 if ($this->parser->get_cfg('sort_selectors')) ksort($val);
253 $this->parser->_add_token(AT_START, $medium, true);
258 if ($this->parser->get_cfg('sort_properties')) ksort($vali);
259 $this->parser->_add_token(SEL_START, $selector, true);
263 $this->parser->_add_token(PROPERTY, $property, true);
264 $this->parser->_add_token(VALUE, $valj, true);
267 $this->parser->_add_token(SEL_END, $selector, true);
271 $this->parser->_add_token(AT_END, $medium, true);
301 if (!$this->output_css_plain) {
302 $this->formatted();
304 …return round((strlen($this->input_css) - strlen($this->output_css_plain)) / strlen($this->input_cs…
315 if (!$this->output_css_plain) {
316 $this->formatted();
319 $diff = strlen($this->output_css_plain) - strlen($this->input_css);
339 if ($loc == 'output' && !$this->output_css) {
340 $this->formatted();
344 return (strlen($this->input_css) / 1000);
346 return (strlen($this->output_css_plain) / 1000);