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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitBorderWidth.cpp

Issue 2860333002: Implements CSSPropertyAPI for the -webkit-border-[start|end|before|after]-width properties. (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitBorderWidth.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitBorderWidth.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitBorderWidth.cpp
index 399f5f47ba9e9a56e8d0cf096862ad76a21ab2a9..8cffddd017d9f15622e468f3dfb0f7ccdb583507 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitBorderWidth.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitBorderWidth.cpp
@@ -4,4 +4,18 @@
#include "core/css/properties/CSSPropertyAPIWebkitBorderWidth.h"
-namespace blink {} // namespace blink
+#include "core/css/parser/CSSParserContext.h"
+#include "core/css/parser/CSSPropertyParserHelpers.h"
+#include "core/css/properties/CSSPropertyWebkitBorderWidthUtils.h"
+
+namespace blink {
+
+const CSSValue* CSSPropertyAPIWebkitBorderWidth::parseSingleValue(
+ CSSParserTokenRange& range,
+ const CSSParserContext& context,
+ CSSPropertyID) {
+ return CSSPropertyWebkitBorderWidthUtils::ConsumeBorderWidth(
+ range, context.Mode(), CSSPropertyParserHelpers::UnitlessQuirk::kForbid);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698