X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Frendering%2Fstyle%2FSVGRenderStyle.h;h=bd672e5c4b3abe69874ccd7b3c5fb00863909fe7;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=5d0c96981bde17bbee580ce883e308dbfbcfda09;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/rendering/style/SVGRenderStyle.h b/src/third_party/WebKit/Source/core/rendering/style/SVGRenderStyle.h index 5d0c969..bd672e5 100644 --- a/src/third_party/WebKit/Source/core/rendering/style/SVGRenderStyle.h +++ b/src/third_party/WebKit/Source/core/rendering/style/SVGRenderStyle.h @@ -28,6 +28,7 @@ #include "core/rendering/style/DataRef.h" #include "core/rendering/style/RenderStyleConstants.h" #include "core/rendering/style/SVGRenderStyleDefs.h" +#include "core/rendering/style/StyleDifference.h" #include "core/svg/SVGPaint.h" #include "platform/graphics/GraphicsTypes.h" #include "platform/graphics/Path.h" @@ -102,13 +103,6 @@ public: return length.release(); } - static PassRefPtr initialKerning() - { - RefPtr length = SVGLength::create(); - length->newValueSpecifiedUnits(LengthTypeNumber, 0); - return length.release(); - } - static PassRefPtr initialStrokeDashOffset() { RefPtr length = SVGLength::create(); @@ -220,12 +214,6 @@ public: stroke.access()->dashOffset = obj; } - void setKerning(PassRefPtr obj) - { - if (!(text->kerning == obj)) - text.access()->kerning = obj; - } - void setStopOpacity(float obj) { if (!(stops->opacity == obj)) @@ -326,17 +314,16 @@ public: const SVGPaint::SVGPaintType& strokePaintType() const { return stroke->paintType; } const Color& strokePaintColor() const { return stroke->paintColor; } const String& strokePaintUri() const { return stroke->paintUri; } - PassRefPtr strokeDashArray() const { return stroke->dashArray; } + SVGLengthList* strokeDashArray() const { return stroke->dashArray.get(); } float strokeMiterLimit() const { return stroke->miterLimit; } - PassRefPtr strokeWidth() const { return stroke->width; } - PassRefPtr strokeDashOffset() const { return stroke->dashOffset; } - PassRefPtr kerning() const { return text->kerning; } + SVGLength* strokeWidth() const { return stroke->width.get(); } + SVGLength* strokeDashOffset() const { return stroke->dashOffset.get(); } float stopOpacity() const { return stops->opacity; } const Color& stopColor() const { return stops->color; } float floodOpacity() const { return misc->floodOpacity; } const Color& floodColor() const { return misc->floodColor; } const Color& lightingColor() const { return misc->lightingColor; } - PassRefPtr baselineShiftValue() const { return misc->baselineShiftValue; } + SVGLength* baselineShiftValue() const { return misc->baselineShiftValue.get(); } const AtomicString& clipperResource() const { return resources->clipper; } const AtomicString& filterResource() const { return resources->filter; } const AtomicString& maskerResource() const { return resources->masker; } @@ -427,7 +414,6 @@ protected: // inherited attributes DataRef fill; DataRef stroke; - DataRef text; DataRef inheritedResources; // non-inherited attributes @@ -442,6 +428,9 @@ private: SVGRenderStyle(const SVGRenderStyle&); SVGRenderStyle(CreateDefaultType); // Used to create the default style. + bool diffNeedsLayout(const SVGRenderStyle* other) const; + bool diffNeedsRepaint(const SVGRenderStyle* other) const; + void setBitDefaults() { svg_inherited_flags._clipRule = initialClipRule();