Chromium Code Reviews

Unified Diff: Source/core/rendering/style/SVGRenderStyle.h

Issue 236203020: Separate repaint and layout requirements of StyleDifference (Step 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update layout test expectations Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/rendering/style/SVGRenderStyle.h
diff --git a/Source/core/rendering/style/SVGRenderStyle.h b/Source/core/rendering/style/SVGRenderStyle.h
index e7347c7c0288331ec879072e36d6e8e32936a071..987ea252bcc6a9f4652a8611b5a3f4414112c242 100644
--- a/Source/core/rendering/style/SVGRenderStyle.h
+++ b/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"
@@ -427,6 +428,9 @@ private:
SVGRenderStyle(const SVGRenderStyle&);
SVGRenderStyle(CreateDefaultType); // Used to create the default style.
+ bool diffNeedsLayoutAndRepaint(const SVGRenderStyle* other) const;
+ bool diffNeedsRepaintOnly(const SVGRenderStyle* other) const;
+
void setBitDefaults()
{
svg_inherited_flags._clipRule = initialClipRule();

Powered by Google App Engine