Home | History | Annotate | Download | only in css

Lines Matching refs:op

161 bool compareValue(T a, T b, MediaFeaturePrefix op)
163 switch (op) {
174 static bool compareAspectRatioValue(CSSValue* value, int width, int height, MediaFeaturePrefix op)
178 return compareValue(width * static_cast<int>(aspectRatio->denominatorValue()), height * static_cast<int>(aspectRatio->numeratorValue()), op);
194 static bool colorMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
199 return numberValue(value, number) && compareValue(bitsPerComponent, static_cast<int>(number), op);
204 static bool colorIndexMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, MediaFeaturePrefix op)
212 return numberValue(value, number) && compareValue(0, static_cast<int>(number), op);
215 static bool monochromeMediaFeatureEval(CSSValue* value, RenderStyle* style, Frame* frame, MediaFeaturePrefix op)
220 return numberValue(value, number) && compareValue(0, static_cast<int>(number), op);
225 return colorMediaFeatureEval(value, style, frame, op);
249 static bool aspectRatioMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
253 return compareAspectRatioValue(value, viewportSize(view).width(), viewportSize(view).height(), op);
261 static bool deviceAspectRatioMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
265 return compareAspectRatioValue(value, static_cast<int>(sg.width()), static_cast<int>(sg.height()), op);
273 static bool evalResolution(CSSValue* value, Frame* frame, MediaFeaturePrefix op)
301 return compareValue(deviceScaleFactor, resolution->getFloatValue(), op);
314 floorf(0.5 + 100 * resolution->getFloatValue(CSSPrimitiveValue::CSS_DPPX)) / 100, op);
317 return compareValue(deviceScaleFactor, resolution->getFloatValue(CSSPrimitiveValue::CSS_DPPX), op);
320 static bool devicePixelRatioMediaFeatureEval(CSSValue *value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
322 return (!value || toCSSPrimitiveValue(value)->isNumber()) && evalResolution(value, frame, op);
325 static bool resolutionMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
327 return (!value || toCSSPrimitiveValue(value)->isResolution()) && evalResolution(value, frame, op);
330 static bool gridMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, MediaFeaturePrefix op)
336 return compareValue(static_cast<int>(number), 0, op);
362 static bool deviceHeightMediaFeatureEval(CSSValue* value, RenderStyle* style, Frame* frame, MediaFeaturePrefix op)
371 return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(static_cast<int>(height), length, op);
378 static bool deviceWidthMediaFeatureEval(CSSValue* value, RenderStyle* style, Frame* frame, MediaFeaturePrefix op)
387 return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(static_cast<int>(width), length, op);
394 static bool heightMediaFeatureEval(CSSValue* value, RenderStyle* style, Frame* frame, MediaFeaturePrefix op)
403 return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(height, length, op);
409 static bool widthMediaFeatureEval(CSSValue* value, RenderStyle* style, Frame* frame, MediaFeaturePrefix op)
418 return computeLength(value, !frame->document()->inQuirksMode(), style, length) && compareValue(width, length, op);
536 static bool animationMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, MediaFeaturePrefix op)
540 return numberValue(value, number) && compareValue(1, static_cast<int>(number), op);
545 static bool deprecatedTransitionMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
551 return numberValue(value, number) && compareValue(1, static_cast<int>(number), op);
556 static bool transform2dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, MediaFeaturePrefix op)
560 return numberValue(value, number) && compareValue(1, static_cast<int>(number), op);
565 static bool transform3dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
579 return numberValue(value, number) && compareValue(have3dRendering, static_cast<int>(number), op);
584 static bool viewModeMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
586 UNUSED_PARAM(op);