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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Issue 1422363007: Fix inspector crash after inspecting a link tag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index c950d18cfd67fe13205178486dd22fef3104b2b3..c8221b8c75d4737a6d3f718991d62d55d20d49b0 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -2109,6 +2109,8 @@ bool CSSPropertyParser::parseShorthand(CSSPropertyID unresolvedProperty, bool im
// is disabled to match CSS 2.1 rules for parsing 'text-decoration'.
if (RuntimeEnabledFeatures::css3TextDecorationsEnabled())
return consumeShorthandGreedily(textDecorationShorthand(), important);
+ // TODO(rwlbuis): investigate if this shorthand hack can be removed.
+ m_currentShorthand = oldShorthand;
RefPtrWillBeRawPtr<CSSValue> textDecoration = consumeTextDecorationLine(m_range);
if (!textDecoration || !m_range.atEnd())
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698