@@ 161-163 (lines=3) @@ | ||
158 | */ |
|
159 | private function calculateClientSize($width, $height) |
|
160 | { |
|
161 | if ($this->clientHints['width'] !== null && $this->clientHints['width'] < $width) { |
|
162 | return Dimmensions::getResizeDimmensions($width, $height, $this->clientHints['width'], null); |
|
163 | } |
|
164 | ||
165 | if ($this->clientHints['viewport-width'] !== null && $this->clientHints['viewport-width'] < $width) { |
|
166 | return Dimmensions::getResizeDimmensions($width, $height, $this->clientHints['viewport-width'], null); |
|
@@ 165-167 (lines=3) @@ | ||
162 | return Dimmensions::getResizeDimmensions($width, $height, $this->clientHints['width'], null); |
|
163 | } |
|
164 | ||
165 | if ($this->clientHints['viewport-width'] !== null && $this->clientHints['viewport-width'] < $width) { |
|
166 | return Dimmensions::getResizeDimmensions($width, $height, $this->clientHints['viewport-width'], null); |
|
167 | } |
|
168 | ||
169 | if ($this->clientHints['dpr'] !== null) { |
|
170 | $width *= $this->clientHints['dpr']; |