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

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

Issue 921843004: Stop explicit inheritance if LayoutStyle doesn't change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Corrected and documented flag copying/comparisons Created 5 years, 10 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 24 matching lines...) Expand all
35 namespace blink { 35 namespace blink {
36 36
37 class SVGLayoutStyle : public RefCounted<SVGLayoutStyle> { 37 class SVGLayoutStyle : public RefCounted<SVGLayoutStyle> {
38 public: 38 public:
39 static PassRefPtr<SVGLayoutStyle> create() { return adoptRef(new SVGLayoutSt yle); } 39 static PassRefPtr<SVGLayoutStyle> create() { return adoptRef(new SVGLayoutSt yle); }
40 PassRefPtr<SVGLayoutStyle> copy() const { return adoptRef(new SVGLayoutStyle (*this));} 40 PassRefPtr<SVGLayoutStyle> copy() const { return adoptRef(new SVGLayoutStyle (*this));}
41 ~SVGLayoutStyle(); 41 ~SVGLayoutStyle();
42 42
43 bool inheritedNotEqual(const SVGLayoutStyle*) const; 43 bool inheritedNotEqual(const SVGLayoutStyle*) const;
44 void inheritFrom(const SVGLayoutStyle*); 44 void inheritFrom(const SVGLayoutStyle*);
45 void copyNonInheritedFrom(const SVGLayoutStyle*); 45 void copyNonInheritedFromCached(const SVGLayoutStyle*);
46 46
47 StyleDifference diff(const SVGLayoutStyle*) const; 47 StyleDifference diff(const SVGLayoutStyle*) const;
48 48
49 bool operator==(const SVGLayoutStyle&) const; 49 bool operator==(const SVGLayoutStyle&) const;
50 bool operator!=(const SVGLayoutStyle& o) const { return !(*this == o); } 50 bool operator!=(const SVGLayoutStyle& o) const { return !(*this == o); }
51 51
52 // Initial values for all the properties 52 // Initial values for all the properties
53 static EAlignmentBaseline initialAlignmentBaseline() { return AB_AUTO; } 53 static EAlignmentBaseline initialAlignmentBaseline() { return AB_AUTO; }
54 static EDominantBaseline initialDominantBaseline() { return DB_AUTO; } 54 static EDominantBaseline initialDominantBaseline() { return DB_AUTO; }
55 static EBaselineShift initialBaselineShift() { return BS_BASELINE; } 55 static EBaselineShift initialBaselineShift() { return BS_BASELINE; }
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); 448 svg_noninherited_flags.f._baselineShift = initialBaselineShift();
449 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); 449 svg_noninherited_flags.f._vectorEffect = initialVectorEffect();
450 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); 450 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering();
451 svg_noninherited_flags.f.maskType = initialMaskType(); 451 svg_noninherited_flags.f.maskType = initialMaskType();
452 } 452 }
453 }; 453 };
454 454
455 } // namespace blink 455 } // namespace blink
456 456
457 #endif // SVGLayoutStyle_h 457 #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