| 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
|
| +}
|
|
|