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

Unified Diff: Source/core/css/Rect.h

Issue 717933002: Clean up after getPropertyCSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase / fix debug compile? Created 6 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
« no previous file with comments | « Source/core/css/RGBColor.idl ('k') | Source/core/css/Rect.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/Rect.h
diff --git a/Source/core/css/Rect.h b/Source/core/css/Rect.h
index 245cd44dc99efce9c58f1e5d82578d0a79b920cf..08fdbf9fe6debbc2fdbe425eb7fe01862329ea24 100644
--- a/Source/core/css/Rect.h
+++ b/Source/core/css/Rect.h
@@ -21,14 +21,13 @@
#ifndef Rect_h
#define Rect_h
-#include "bindings/core/v8/ScriptWrappable.h"
#include "core/css/CSSPrimitiveValue.h"
#include "wtf/RefPtr.h"
#include "wtf/text/StringBuilder.h"
namespace blink {
-class RectBase : public RefCountedWillBeGarbageCollected<RectBase>, public ScriptWrappableBase {
+class RectBase : public RefCountedWillBeGarbageCollected<RectBase> {
DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(RectBase);
public:
CSSPrimitiveValue* top() const { return m_top.get(); }
@@ -53,13 +52,6 @@ public:
protected:
RectBase() { }
- RectBase(const RectBase& cloneFrom)
- : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr)
- , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullptr)
- , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nullptr)
- , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr)
- {
- }
private:
RefPtrWillBeMember<CSSPrimitiveValue> m_top;
@@ -72,8 +64,6 @@ class Rect : public RectBase {
public:
static PassRefPtrWillBeRawPtr<Rect> create() { return adoptRefWillBeNoop(new Rect); }
- PassRefPtrWillBeRawPtr<Rect> cloneForCSSOM() const { return adoptRefWillBeNoop(new Rect(*this)); }
-
String cssText() const
{
return generateCSSString(top()->cssText(), right()->cssText(), bottom()->cssText(), left()->cssText());
@@ -81,7 +71,6 @@ public:
private:
Rect() { }
- Rect(const Rect& cloneFrom) : RectBase(cloneFrom) { }
static String generateCSSString(const String& top, const String& right, const String& bottom, const String& left)
{
return "rect(" + top + ' ' + right + ' ' + bottom + ' ' + left + ')';
@@ -96,8 +85,6 @@ class Quad : public RectBase {
public:
static PassRefPtrWillBeRawPtr<Quad> create() { return adoptRefWillBeNoop(new Quad); }
- PassRefPtrWillBeRawPtr<Quad> cloneForCSSOM() const { return adoptRefWillBeNoop(new Quad(*this)); }
-
String cssText() const
{
return generateCSSString(top()->cssText(), right()->cssText(), bottom()->cssText(), left()->cssText());
@@ -105,7 +92,6 @@ public:
private:
Quad() { }
- Quad(const Quad& cloneFrom) : RectBase(cloneFrom) { }
static String generateCSSString(const String& top, const String& right, const String& bottom, const String& left)
{
StringBuilder result;
« no previous file with comments | « Source/core/css/RGBColor.idl ('k') | Source/core/css/Rect.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698