Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: Source/core/css/CSSParser-in.cpp

Issue 23816008: Drop CSS cursor quirk for missing fallback cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added default pointer fallback to cursor rule in http test Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/misc/clone-in-DOMContentLoaded.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParser-in.cpp
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp
index 1ff2cfe8f1ab2355d990715a8dacce611992d08e..3cd0745d218c30325e32cdbce86346f4dfc3f163 100644
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -1912,15 +1912,14 @@ bool CSSParser::parseValue(CSSPropertyID propId, bool important)
if (image)
list->append(CSSCursorImageValue::create(image, hasHotSpot, hotSpot));
- if ((inStrictMode() && !value) || (value && !(value->unit == CSSParserValue::Operator && value->iValue == ',')))
+ if (!value || !(value->unit == CSSParserValue::Operator && value->iValue == ','))
return false;
value = m_valueList->next(); // comma
}
if (list) {
- if (!value) { // no value after url list (MSIE 5 compatibility)
- if (list->length() != 1)
- return false;
- } else if (inQuirksMode() && value->id == CSSValueHand) // MSIE 5 compatibility :/
+ if (!value)
+ return false;
+ if (inQuirksMode() && value->id == CSSValueHand) // MSIE 5 compatibility :/
list->append(cssValuePool().createIdentifierValue(CSSValuePointer));
else if ((value->id >= CSSValueAuto && value->id <= CSSValueWebkitGrabbing) || value->id == CSSValueCopy || value->id == CSSValueNone)
list->append(cssValuePool().createIdentifierValue(value->id));
« no previous file with comments | « LayoutTests/http/tests/misc/clone-in-DOMContentLoaded.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698