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

Unified Diff: Source/core/html/HTMLTimeElement.cpp

Issue 28953005: Add support for <time> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/core/html/HTMLTimeElement.h ('k') | Source/core/html/HTMLTimeElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTimeElement.cpp
diff --git a/Source/core/platform/LengthPoint.h b/Source/core/html/HTMLTimeElement.cpp
similarity index 68%
copy from Source/core/platform/LengthPoint.h
copy to Source/core/html/HTMLTimeElement.cpp
index 151a852579cab0d08a1385fc7af89727ea2dc96c..f45b358a09b358c135de9ac5b06b9398d7d7b353 100644
--- a/Source/core/platform/LengthPoint.h
+++ b/Source/core/html/HTMLTimeElement.cpp
@@ -27,39 +27,33 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef LengthPoint_h
-#define LengthPoint_h
+#include "config.h"
+#include "core/html/HTMLTimeElement.h"
-#include "core/platform/Length.h"
+#include "HTMLNames.h"
+/*
+#include "bindings/v8/ExceptionStatePlaceholder.h"
+#include "core/dom/Document.h"
+#include "core/dom/Text.h"
+#include "core/rendering/style/RenderStyle.h"
+#include "core/rendering/style/StyleInheritedData.h"
+#include "wtf/text/StringBuilder.h"
+*/
namespace WebCore {
-struct LengthPoint {
-public:
- LengthPoint()
- {
- }
-
- LengthPoint(Length x, Length y)
- : m_x(x)
- , m_y(y)
- {
- }
-
- bool operator==(const LengthPoint& o) const { return m_x == o.m_x && m_y == o.m_y; }
- bool operator!=(const LengthPoint& o) const { return m_x != o.m_x || m_y != o.m_y; }
-
- void setX(Length x) { m_x = x; }
- Length x() const { return m_x; }
-
- void setY(Length y) { m_y = y; }
- Length y() const { return m_y; }
+using namespace HTMLNames;
-private:
- Length m_x;
- Length m_y;
-};
+inline HTMLTimeElement::HTMLTimeElement(const QualifiedName& tagName, Document& document)
+ : HTMLElement(tagName, document)
+{
+ ASSERT(hasTagName(timeTag));
+ ScriptWrappable::init(this);
+}
-} // namespace WebCore
+PassRefPtr<HTMLTimeElement> HTMLTimeElement::create(const QualifiedName& tagName, Document& document)
+{
+ return adoptRef(new HTMLTimeElement(tagName, document));
+}
-#endif // LengthPoint_h
+}
« no previous file with comments | « Source/core/html/HTMLTimeElement.h ('k') | Source/core/html/HTMLTimeElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698