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

Side by Side Diff: Source/core/layout/style/SVGLayoutStyle.h

Issue 1001833002: Rename default -> initial style and use singletons. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/layout/style/LayoutStyle.cpp ('k') | Source/core/layout/style/SVGLayoutStyle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 DataRef<StyleStrokeData> stroke; 440 DataRef<StyleStrokeData> stroke;
441 DataRef<StyleInheritedResourceData> inheritedResources; 441 DataRef<StyleInheritedResourceData> inheritedResources;
442 442
443 // non-inherited attributes 443 // non-inherited attributes
444 DataRef<StyleStopData> stops; 444 DataRef<StyleStopData> stops;
445 DataRef<StyleMiscData> misc; 445 DataRef<StyleMiscData> misc;
446 DataRef<StyleLayoutData> layout; 446 DataRef<StyleLayoutData> layout;
447 DataRef<StyleResourceData> resources; 447 DataRef<StyleResourceData> resources;
448 448
449 private: 449 private:
450 enum CreateDefaultType { CreateDefault }; 450 enum CreateInitialType { CreateInitial };
451 451
452 SVGLayoutStyle(); 452 SVGLayoutStyle();
453 SVGLayoutStyle(const SVGLayoutStyle&); 453 SVGLayoutStyle(const SVGLayoutStyle&);
454 SVGLayoutStyle(CreateDefaultType); // Used to create the default style. 454 SVGLayoutStyle(CreateInitialType); // Used to create the initial style singl eton.
455 455
456 bool diffNeedsLayoutAndPaintInvalidation(const SVGLayoutStyle* other) const; 456 bool diffNeedsLayoutAndPaintInvalidation(const SVGLayoutStyle* other) const;
457 bool diffNeedsPaintInvalidation(const SVGLayoutStyle* other) const; 457 bool diffNeedsPaintInvalidation(const SVGLayoutStyle* other) const;
458 458
459 void setBitDefaults() 459 void setBitDefaults()
460 { 460 {
461 svg_inherited_flags._clipRule = initialClipRule(); 461 svg_inherited_flags._clipRule = initialClipRule();
462 svg_inherited_flags._colorRendering = initialColorRendering(); 462 svg_inherited_flags._colorRendering = initialColorRendering();
463 svg_inherited_flags._fillRule = initialFillRule(); 463 svg_inherited_flags._fillRule = initialFillRule();
464 svg_inherited_flags._shapeRendering = initialShapeRendering(); 464 svg_inherited_flags._shapeRendering = initialShapeRendering();
(...skipping 13 matching lines...) Expand all
478 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); 478 svg_noninherited_flags.f._baselineShift = initialBaselineShift();
479 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); 479 svg_noninherited_flags.f._vectorEffect = initialVectorEffect();
480 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); 480 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering();
481 svg_noninherited_flags.f.maskType = initialMaskType(); 481 svg_noninherited_flags.f.maskType = initialMaskType();
482 } 482 }
483 }; 483 };
484 484
485 } // namespace blink 485 } // namespace blink
486 486
487 #endif // SVGLayoutStyle_h 487 #endif // SVGLayoutStyle_h
OLDNEW
« no previous file with comments | « Source/core/layout/style/LayoutStyle.cpp ('k') | Source/core/layout/style/SVGLayoutStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698