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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 "core/HTMLNames.h" 5 #include "core/HTMLNames.h"
6 #include "core/dom/Element.h" 6 #include "core/dom/Element.h"
7 #include "core/dom/ElementTraversal.h" 7 #include "core/dom/ElementTraversal.h"
8 #include "core/dom/NodeComputedStyle.h" 8 #include "core/dom/NodeComputedStyle.h"
9 #include "core/dom/StyleEngine.h" 9 #include "core/dom/StyleEngine.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
(...skipping 18 matching lines...) Expand all
29 29
30 HTMLDocument& document() const { return *m_document; } 30 HTMLDocument& document() const { return *m_document; }
31 31
32 void setHtmlInnerHTML(const char* htmlContent); 32 void setHtmlInnerHTML(const char* htmlContent);
33 33
34 void checkElements(ElementResult expected[], unsigned expectedCount) const; 34 void checkElements(ElementResult expected[], unsigned expectedCount) const;
35 35
36 private: 36 private:
37 OwnPtr<DummyPageHolder> m_dummyPageHolder; 37 OwnPtr<DummyPageHolder> m_dummyPageHolder;
38 38
39 RefPtrWillBePersistent<HTMLDocument> m_document; 39 Persistent<HTMLDocument> m_document;
40 }; 40 };
41 41
42 void AffectedByFocusTest::SetUp() 42 void AffectedByFocusTest::SetUp()
43 { 43 {
44 m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600)); 44 m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
45 m_document = toHTMLDocument(&m_dummyPageHolder->document()); 45 m_document = toHTMLDocument(&m_dummyPageHolder->document());
46 ASSERT(m_document); 46 ASSERT(m_document);
47 } 47 }
48 48
49 void AffectedByFocusTest::setHtmlInnerHTML(const char* htmlContent) 49 void AffectedByFocusTest::setHtmlInnerHTML(const char* htmlContent)
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 document().getElementById("d")->focus(); 305 document().getElementById("d")->focus();
306 document().view()->updateAllLifecyclePhases(); 306 document().view()->updateAllLifecyclePhases();
307 307
308 unsigned elementCount = document().styleEngine().styleForElementCount() - st artCount; 308 unsigned elementCount = document().styleEngine().styleForElementCount() - st artCount;
309 309
310 ASSERT_EQ(1U, elementCount); 310 ASSERT_EQ(1U, elementCount);
311 } 311 }
312 312
313 } // namespace blink 313 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698