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

Side by Side Diff: Source/core/rendering/style/SVGRenderStyle.h

Issue 247713003: Separate repaint and layout requirements of StyleDifference (Step 3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments; Rebase on RAL Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org> 3 2004, 2005 Rob Buis <buis@kde.org>
4 Copyright (C) 2005, 2006 Apple Computer, Inc. 4 Copyright (C) 2005, 2006 Apple Computer, Inc.
5 Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 DataRef<StyleResourceData> resources; 422 DataRef<StyleResourceData> resources;
423 423
424 private: 424 private:
425 enum CreateDefaultType { CreateDefault }; 425 enum CreateDefaultType { CreateDefault };
426 426
427 SVGRenderStyle(); 427 SVGRenderStyle();
428 SVGRenderStyle(const SVGRenderStyle&); 428 SVGRenderStyle(const SVGRenderStyle&);
429 SVGRenderStyle(CreateDefaultType); // Used to create the default style. 429 SVGRenderStyle(CreateDefaultType); // Used to create the default style.
430 430
431 bool diffNeedsLayout(const SVGRenderStyle* other) const; 431 bool diffNeedsLayout(const SVGRenderStyle* other) const;
432 bool diffNeedsRepaintOnly(const SVGRenderStyle* other) const; 432 bool diffNeedsRepaint(const SVGRenderStyle* other) const;
433 433
434 void setBitDefaults() 434 void setBitDefaults()
435 { 435 {
436 svg_inherited_flags._clipRule = initialClipRule(); 436 svg_inherited_flags._clipRule = initialClipRule();
437 svg_inherited_flags._colorRendering = initialColorRendering(); 437 svg_inherited_flags._colorRendering = initialColorRendering();
438 svg_inherited_flags._fillRule = initialFillRule(); 438 svg_inherited_flags._fillRule = initialFillRule();
439 svg_inherited_flags._shapeRendering = initialShapeRendering(); 439 svg_inherited_flags._shapeRendering = initialShapeRendering();
440 svg_inherited_flags._textAnchor = initialTextAnchor(); 440 svg_inherited_flags._textAnchor = initialTextAnchor();
441 svg_inherited_flags._capStyle = initialCapStyle(); 441 svg_inherited_flags._capStyle = initialCapStyle();
442 svg_inherited_flags._joinStyle = initialJoinStyle(); 442 svg_inherited_flags._joinStyle = initialJoinStyle();
(...skipping 10 matching lines...) Expand all
453 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); 453 svg_noninherited_flags.f._baselineShift = initialBaselineShift();
454 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); 454 svg_noninherited_flags.f._vectorEffect = initialVectorEffect();
455 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); 455 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering();
456 svg_noninherited_flags.f.maskType = initialMaskType(); 456 svg_noninherited_flags.f.maskType = initialMaskType();
457 } 457 }
458 }; 458 };
459 459
460 } // namespace WebCore 460 } // namespace WebCore
461 461
462 #endif // SVGRenderStyle_h 462 #endif // SVGRenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | Source/core/rendering/style/SVGRenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698