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

Side by Side Diff: Source/core/css/AffectedByFocusTest.cpp

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/HTMLNames.h" 6 #include "core/HTMLNames.h"
7 #include "core/dom/Element.h" 7 #include "core/dom/Element.h"
8 #include "core/dom/ElementTraversal.h" 8 #include "core/dom/ElementTraversal.h"
9 #include "core/dom/NodeRenderStyle.h" 9 #include "core/dom/NodeRenderStyle.h"
10 #include "core/dom/StyleEngine.h" 10 #include "core/dom/StyleEngine.h"
(...skipping 11 matching lines...) Expand all
22 class AffectedByFocusTest : public ::testing::Test { 22 class AffectedByFocusTest : public ::testing::Test {
23 23
24 protected: 24 protected:
25 25
26 struct ElementResult { 26 struct ElementResult {
27 const blink::HTMLQualifiedName tag; 27 const blink::HTMLQualifiedName tag;
28 bool affectedBy; 28 bool affectedBy;
29 bool childrenOrSiblingsAffectedBy; 29 bool childrenOrSiblingsAffectedBy;
30 }; 30 };
31 31
32 virtual void SetUp() OVERRIDE; 32 virtual void SetUp() override;
33 33
34 HTMLDocument& document() const { return *m_document; } 34 HTMLDocument& document() const { return *m_document; }
35 35
36 void setHtmlInnerHTML(const char* htmlContent); 36 void setHtmlInnerHTML(const char* htmlContent);
37 37
38 void checkElements(ElementResult expected[], unsigned expectedCount) const; 38 void checkElements(ElementResult expected[], unsigned expectedCount) const;
39 39
40 private: 40 private:
41 OwnPtr<DummyPageHolder> m_dummyPageHolder; 41 OwnPtr<DummyPageHolder> m_dummyPageHolder;
42 42
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 document().getElementById("d")->focus(); 309 document().getElementById("d")->focus();
310 document().view()->updateLayoutAndStyleIfNeededRecursive(); 310 document().view()->updateLayoutAndStyleIfNeededRecursive();
311 311
312 unsigned accessCount = document().styleEngine()->resolverAccessCount() - sta rtCount; 312 unsigned accessCount = document().styleEngine()->resolverAccessCount() - sta rtCount;
313 313
314 ASSERT_EQ(1U, accessCount); 314 ASSERT_EQ(1U, accessCount);
315 } 315 }
316 316
317 } // namespace 317 } // namespace
OLDNEW
« no previous file with comments | « Source/core/clipboard/DataTransferItemList.h ('k') | Source/core/css/BinaryDataFontFaceSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698