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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1491253004: Release Oilpan heap singletons prior to LSan leak detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address non-LSan Oilpan compilation failure Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "platform/geometry/FloatRoundedRect.h" 71 #include "platform/geometry/FloatRoundedRect.h"
72 #include "platform/geometry/LayoutRectOutsets.h" 72 #include "platform/geometry/LayoutRectOutsets.h"
73 #include "platform/graphics/Color.h" 73 #include "platform/graphics/Color.h"
74 #include "platform/graphics/GraphicsTypes.h" 74 #include "platform/graphics/GraphicsTypes.h"
75 #include "platform/scroll/ScrollableArea.h" 75 #include "platform/scroll/ScrollableArea.h"
76 #include "platform/text/TextDirection.h" 76 #include "platform/text/TextDirection.h"
77 #include "platform/text/TextRun.h" 77 #include "platform/text/TextRun.h"
78 #include "platform/text/UnicodeBidi.h" 78 #include "platform/text/UnicodeBidi.h"
79 #include "platform/transforms/TransformOperations.h" 79 #include "platform/transforms/TransformOperations.h"
80 #include "wtf/Forward.h" 80 #include "wtf/Forward.h"
81 #include "wtf/LeakAnnotations.h"
81 #include "wtf/OwnPtr.h" 82 #include "wtf/OwnPtr.h"
82 #include "wtf/RefCounted.h" 83 #include "wtf/RefCounted.h"
83 #include "wtf/StdLibExtras.h" 84 #include "wtf/StdLibExtras.h"
84 #include "wtf/Vector.h" 85 #include "wtf/Vector.h"
85 86
86 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u ) { return t == static_cast<T>(u); } 87 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u ) { return t == static_cast<T>(u); }
87 88
88 #define SET_VAR(group, variable, value) \ 89 #define SET_VAR(group, variable, value) \
89 if (!compareEqual(group->variable, value)) \ 90 if (!compareEqual(group->variable, value)) \
90 group.access()->variable = value 91 group.access()->variable = value
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 345
345 enum InitialStyleTag { 346 enum InitialStyleTag {
346 InitialStyle 347 InitialStyle
347 }; 348 };
348 ALWAYS_INLINE explicit ComputedStyle(InitialStyleTag); 349 ALWAYS_INLINE explicit ComputedStyle(InitialStyleTag);
349 ALWAYS_INLINE ComputedStyle(const ComputedStyle&); 350 ALWAYS_INLINE ComputedStyle(const ComputedStyle&);
350 351
351 static PassRefPtr<ComputedStyle> createInitialStyle(); 352 static PassRefPtr<ComputedStyle> createInitialStyle();
352 static inline ComputedStyle* initialStyle() 353 static inline ComputedStyle* initialStyle()
353 { 354 {
355 LEAK_SANITIZER_DISABLED_SCOPE;
354 DEFINE_STATIC_REF(ComputedStyle, s_initialStyle, (ComputedStyle::createI nitialStyle())); 356 DEFINE_STATIC_REF(ComputedStyle, s_initialStyle, (ComputedStyle::createI nitialStyle()));
355 return s_initialStyle; 357 return s_initialStyle;
356 } 358 }
357 359
358 public: 360 public:
359 static PassRefPtr<ComputedStyle> create(); 361 static PassRefPtr<ComputedStyle> create();
360 static PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const Compu tedStyle& parentStyle, EDisplay); 362 static PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const Compu tedStyle& parentStyle, EDisplay);
361 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&); 363 static PassRefPtr<ComputedStyle> clone(const ComputedStyle&);
362 364
363 // Computes how the style change should be propagated down the tree. 365 // Computes how the style change should be propagated down the tree.
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 } 2005 }
2004 2006
2005 inline bool ComputedStyle::hasPseudoElementStyle() const 2007 inline bool ComputedStyle::hasPseudoElementStyle() const
2006 { 2008 {
2007 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2009 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2008 } 2010 }
2009 2011
2010 } // namespace blink 2012 } // namespace blink
2011 2013
2012 #endif // ComputedStyle_h 2014 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698