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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class StyleSheetContents; 57 class StyleSheetContents;
58 58
59 class CORE_EXPORT StyleEngine final : public GarbageCollectedFinalized<StyleEngi ne>, public CSSFontSelectorClient { 59 class CORE_EXPORT StyleEngine final : public GarbageCollectedFinalized<StyleEngi ne>, public CSSFontSelectorClient {
60 USING_GARBAGE_COLLECTED_MIXIN(StyleEngine); 60 USING_GARBAGE_COLLECTED_MIXIN(StyleEngine);
61 public: 61 public:
62 62
63 class IgnoringPendingStylesheet : public TemporaryChange<bool> { 63 class IgnoringPendingStylesheet : public TemporaryChange<bool> {
64 DISALLOW_NEW(); 64 DISALLOW_NEW();
65 public: 65 public:
66 IgnoringPendingStylesheet(StyleEngine& engine) 66 IgnoringPendingStylesheet(StyleEngine& engine)
67 : TemporaryChange<bool>(engine.m_ignorePendingStylesheets, true) 67 : TemporaryChange<bool>(&engine.m_ignorePendingStylesheets, true)
tzik 2016/07/15 04:25:02 MSVC seems to fail to call the parent constructor
jsbell 2016/07/18 18:42:37 I'll give that a try. (Seems cleaner anyway?)
68 { 68 {
69 } 69 }
70 }; 70 };
71 71
72 friend class IgnoringPendingStylesheet; 72 friend class IgnoringPendingStylesheet;
73 73
74 static StyleEngine* create(Document& document) { return new StyleEngine(docu ment); } 74 static StyleEngine* create(Document& document) { return new StyleEngine(docu ment); }
75 75
76 ~StyleEngine(); 76 ~StyleEngine();
77 77
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 271 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
272 unsigned m_styleForElementCount = 0; 272 unsigned m_styleForElementCount = 0;
273 273
274 friend class StyleEngineTest; 274 friend class StyleEngineTest;
275 }; 275 };
276 276
277 } // namespace blink 277 } // namespace blink
278 278
279 #endif 279 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698