Lines Matching refs:parser

49 	public $parser;  variable in csstidy_optimise
64 $this->parser = $css;
80 if ($this->parser->get_cfg('reverse_left_and_right') > 0) {
92 if ($this->parser->get_cfg('preserve_css')) {
96 if ((int)$this->parser->get_cfg('merge_selectors') === 2) {
104 if ($this->parser->get_cfg('discard_invalid_selectors')) {
112 if ($this->parser->get_cfg('optimise_shorthands') > 0) {
119 if ($this->parser->get_cfg('optimise_shorthands') < 2) {
125 if ($this->parser->get_cfg('optimise_shorthands') < 3) {
145 $shorthands = & $this->parser->data['csstidy']['shorthands'];
151 …$this->parser->log('Optimised shorthand notation (' . $this->property . '): Changed "' . $this->va…
158 $this->parser->log('Optimised !important', 'Information');
168 $shorthands = & $this->parser->data['csstidy']['shorthands'];
170 if (!$this->parser->get_cfg('optimise_shorthands') || $this->parser->get_cfg('preserve_css')) {
174 if ($this->property === 'font' && $this->parser->get_cfg('optimise_shorthands') > 1) {
176 …$this->parser->merge_css_blocks($this->at, $this->selector, $this->dissolve_short_font($this->valu…
178 if ($this->property === 'background' && $this->parser->get_cfg('optimise_shorthands') > 2) {
180 …$this->parser->merge_css_blocks($this->at, $this->selector, $this->dissolve_short_bg($this->value)…
183 …$this->parser->merge_css_blocks($this->at, $this->selector, $this->dissolve_4value_shorthands($thi…
196 $replace_colors = & $this->parser->data['csstidy']['replace_colors'];
204 if ($this->parser->is_important($this->sub_value)) {
207 $this->sub_value = $this->parser->gvw_important($this->sub_value);
210 if ($this->property === 'font-weight' && $this->parser->get_cfg('compress_font-weight')) {
213 $this->parser->log('Optimised font-weight: Changed "bold" to "700"', 'Information');
216 $this->parser->log('Optimised font-weight: Changed "normal" to "400"', 'Information');
223 …$this->parser->log('Fixed invalid number: Changed "' . $this->sub_value . '" to "' . $temp . '"', …
225 …$this->parser->log('Optimised number: Changed "' . $this->sub_value . '" to "' . $temp . '"', 'Inf…
229 if ($this->parser->get_cfg('compress_colors')) {
233 …$this->parser->log('Fixed invalid color name: Changed "' . $this->sub_value . '" to "' . $temp . '…
235 …$this->parser->log('Optimised color: Changed "' . $this->sub_value . '" to "' . $temp . '"', 'Info…
252 if ($this->parser->is_important($value)) {
253 $values = $this->parser->gvw_important($value);
297 if ($this->parser->is_important($string)) {
298 $important = $this->parser->get_cfg('space_before_important') ? ' !important' : '!important';
299 $string = $this->parser->gvw_important($string) . $important;
311 $replace_colors = & $this->parser->data['csstidy']['replace_colors'];
435 $unit_values = & $this->parser->data['csstidy']['unit_values'];
436 $color_values = & $this->parser->data['csstidy']['color_values'];
484 $units = & $this->parser->data['csstidy']['units'];
594 $shorthands = & $this->parser->data['csstidy']['shorthands'];
602 if ($this->parser->is_important($value)) {
603 $value = $this->parser->gvw_important($value);
644 $shorthands = & $this->parser->data['csstidy']['radius_shorthands'];
689 if ($string[$i] == $sep && !$this->parser->escaped($string, $i)) {
691 …=== '\'' || (!$explode_in_parenthesis && $string[$i] === '(') && !$this->parser->escaped($string, …
701 if ($string[$i] == $to && !$this->parser->escaped($string, $i)) {
723 $shorthands = & $this->parser->data['csstidy']['shorthands'];
734 if ($this->parser->is_important($val)) {
736 $return[$key] .= $this->parser->gvw_important($val) . ' ';
758 $shorthands = & $this->parser->data['csstidy']['radius_shorthands'];
800 $background_prop_default = & $this->parser->data['csstidy']['background_prop_default'];
809 if ($this->parser->is_important($str_value)) {
811 $str_value = $this->parser->gvw_important($str_value);
873 $background_prop_default = & $this->parser->data['csstidy']['background_prop_default'];
877 …$bg_img_array = @$this->explode_ws(',', $this->parser->gvw_important($input_css['background-image'…
905 if ($this->parser->is_important($cur_value)) {
907 $cur_value = $this->parser->gvw_important($cur_value);
953 $font_prop_default = & $this->parser->data['csstidy']['font_prop_default'];
960 if ($this->parser->is_important($str_value)) {
962 $str_value = $this->parser->gvw_important($str_value);
1040 $font_prop_default = & $this->parser->data['csstidy']['font_prop_default'];
1076 if ($this->parser->is_important($cur_value)) {
1078 $cur_value = $this->parser->gvw_important($cur_value);
1148 $shorthands = & $this->parser->data['csstidy']['shorthands'];
1172 $shorthands = & $this->parser->data['csstidy']['radius_shorthands'];