OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |