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

Unified Diff: Source/core/css/parser/SizesAttributeParser.h

Issue 302123002: Enable zero length source size in sizes attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Break out of length calc early for empty length Created 6 years, 7 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 | « no previous file | Source/core/css/parser/SizesAttributeParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/SizesAttributeParser.h
diff --git a/Source/core/css/parser/SizesAttributeParser.h b/Source/core/css/parser/SizesAttributeParser.h
index 098753d631258085551d8a0461fdc7f0168a244d..3c7bc4ee260c25283576e9169a1f6818161fe982 100644
--- a/Source/core/css/parser/SizesAttributeParser.h
+++ b/Source/core/css/parser/SizesAttributeParser.h
@@ -21,6 +21,7 @@ private:
SizesAttributeParser(PassRefPtr<MediaValues> mediaValues)
: m_mediaValues(mediaValues)
, m_length(0)
+ , m_lengthWasSet(false)
eseidel 2014/06/02 16:24:38 Entertained that Chris Dumez was just making one o
{
}
@@ -34,6 +35,7 @@ private:
RefPtrWillBeMember<MediaQuerySet> m_mediaCondition;
RefPtr<MediaValues> m_mediaValues;
unsigned m_length;
+ bool m_lengthWasSet;
};
} // namespace
« no previous file with comments | « no previous file | Source/core/css/parser/SizesAttributeParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698