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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.h

Issue 2528673003: Rework the "rules for parsing dimension values" implementation (Closed)
Patch Set: Rebase; clarify comment. Created 4 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
Index: third_party/WebKit/Source/core/html/HTMLElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.h b/third_party/WebKit/Source/core/html/HTMLElement.h
index 6a33cd0d4a711566417be6fbc6e53f4e14dd357a..9ad60ed559ed3b682f782e35b2d26e7db18a71bb 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLElement.h
@@ -122,9 +122,11 @@ class CORE_EXPORT HTMLElement : public Element {
protected:
HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
+ enum AllowPercentage { DontAllowPercentageValues, AllowPercentageValues };
void addHTMLLengthToStyle(MutableStylePropertySet*,
CSSPropertyID,
- const String& value);
+ const String& value,
+ AllowPercentage = AllowPercentageValues);
void addHTMLColorToStyle(MutableStylePropertySet*,
CSSPropertyID,
const String& color);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLDimensionTest.cpp ('k') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698