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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp

Issue 1855213002: Add DataPersistent<> for copy-on-modify and use for StyleFilterData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indirectly allocate Persistent<> Created 4 years, 8 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 | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h ('k') | no next file » | 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 33
34 class SameSizeStyleRareNonInheritedData : public RefCounted<StyleRareNonInherite dData> { 34 class SameSizeStyleRareNonInheritedData : public RefCounted<StyleRareNonInherite dData> {
35 public: 35 public:
36 float floats[3]; 36 float floats[3];
37 int integers; 37 int integers;
38 38
39 LengthPoint lengthPoints[2]; 39 LengthPoint lengthPoints[2];
40 LineClampValue lineClamps; 40 LineClampValue lineClamps;
41 DraggableRegionMode draggableRegions; 41 DraggableRegionMode draggableRegions;
42 42
43 void* dataRefs[10]; 43 void* dataRefs[8];
44 DataPersistent<void*> dataPersistents[2];
44 void* ownPtrs[4]; 45 void* ownPtrs[4];
45 Persistent<void*> persistentHandles[2]; 46 Persistent<void*> persistentHandles[2];
46 void* refPtrs[2]; 47 void* refPtrs[2];
47 48
48 FillLayer fillLayers; 49 FillLayer fillLayers;
49 NinePieceImage ninePieces; 50 NinePieceImage ninePieces;
50 FloatSize floatSize; 51 FloatSize floatSize;
51 Length lengths; 52 Length lengths;
52 53
53 StyleColor styleColors[8]; 54 StyleColor styleColors[8];
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 { 349 {
349 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); 350 return dataEquivalent(m_shapeOutside, o.m_shapeOutside);
350 } 351 }
351 352
352 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit edData& o) const 353 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit edData& o) const
353 { 354 {
354 return dataEquivalent(m_clipPath, o.m_clipPath); 355 return dataEquivalent(m_clipPath, o.m_clipPath);
355 } 356 }
356 357
357 } // namespace blink 358 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698