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

Unified Diff: Source/core/css/CSSGridLineNamesValue.cpp

Issue 23528004: [CSS Grid Layout] Update named grid lines syntax to the last version of the specs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@named
Patch Set: Final patch for landing Created 7 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: Source/core/css/CSSGridLineNamesValue.cpp
diff --git a/Source/platform/graphics/DisplayList.cpp b/Source/core/css/CSSGridLineNamesValue.cpp
similarity index 78%
copy from Source/platform/graphics/DisplayList.cpp
copy to Source/core/css/CSSGridLineNamesValue.cpp
index c16d3517cdc5bdacec65ff791dc538eec19bfdcc..3a2877d9ae9b7090ff816d53e240f9769e7c06cb 100644
--- a/Source/platform/graphics/DisplayList.cpp
+++ b/Source/core/css/CSSGridLineNamesValue.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Igalia, S.L. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -29,30 +29,24 @@
*/
#include "config.h"
-#include "platform/graphics/DisplayList.h"
-
-#include "third_party/skia/include/core/SkPicture.h"
+#include "core/css/CSSGridLineNamesValue.h"
namespace WebCore {
-DisplayList::DisplayList(const FloatRect& bounds)
- : m_bounds(bounds)
- , m_picture(adoptRef(new SkPicture()))
+String CSSGridLineNamesValue::customCSSText() const
{
+ return "(" + CSSValueList::customCSSText() + ")";
}
-DisplayList::~DisplayList()
+CSSGridLineNamesValue::CSSGridLineNamesValue()
+ : CSSValueList(GridLineNamesClass, SpaceSeparator)
{
}
-const FloatRect& DisplayList::bounds() const
+PassRefPtr<CSSGridLineNamesValue> CSSGridLineNamesValue::cloneForCSSOM() const
{
- return m_bounds;
+ return adoptRef(new CSSGridLineNamesValue(*this));
}
-SkPicture* DisplayList::picture() const
-{
- return m_picture.get();
}
-}

Powered by Google App Engine
This is Rietveld 408576698