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

Side by Side Diff: Source/core/dom/DocumentTest.cpp

Issue 1225583004: Revert of Add a FrameView lifecycle method that just updates layout, style and compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/DragUpdateTest.cpp ('k') | Source/core/editing/EditingTestBase.cpp » ('j') | 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) 2014, Google Inc. All rights reserved. 2 * Copyright (c) 2014, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 }; 63 };
64 64
65 void DocumentTest::SetUp() 65 void DocumentTest::SetUp()
66 { 66 {
67 m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600)); 67 m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
68 } 68 }
69 69
70 void DocumentTest::setHtmlInnerHTML(const char* htmlContent) 70 void DocumentTest::setHtmlInnerHTML(const char* htmlContent)
71 { 71 {
72 document().documentElement()->setInnerHTML(String::fromUTF8(htmlContent), AS SERT_NO_EXCEPTION); 72 document().documentElement()->setInnerHTML(String::fromUTF8(htmlContent), AS SERT_NO_EXCEPTION);
73 document().view()->updateAllLifecyclePhases(); 73 document().view()->updateLayoutAndStyleForPainting();
74 } 74 }
75 75
76 class MockDocumentVisibilityObserver 76 class MockDocumentVisibilityObserver
77 : public NoBaseWillBeGarbageCollectedFinalized<MockDocumentVisibilityObserve r> 77 : public NoBaseWillBeGarbageCollectedFinalized<MockDocumentVisibilityObserve r>
78 , public DocumentVisibilityObserver { 78 , public DocumentVisibilityObserver {
79 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MockDocumentVisibilityObserver); 79 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MockDocumentVisibilityObserver);
80 public: 80 public:
81 static PassOwnPtrWillBeRawPtr<MockDocumentVisibilityObserver> create(Documen t& document) 81 static PassOwnPtrWillBeRawPtr<MockDocumentVisibilityObserver> create(Documen t& document)
82 { 82 {
83 return adoptPtrWillBeNoop(new MockDocumentVisibilityObserver(document)); 83 return adoptPtrWillBeNoop(new MockDocumentVisibilityObserver(document));
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 for (auto test : tests) { 350 for (auto test : tests) {
351 document().setReferrerPolicy(ReferrerPolicyDefault); 351 document().setReferrerPolicy(ReferrerPolicyDefault);
352 352
353 document().processReferrerPolicy(test.policy); 353 document().processReferrerPolicy(test.policy);
354 EXPECT_EQ(test.expected, document().referrerPolicy()) << test.policy; 354 EXPECT_EQ(test.expected, document().referrerPolicy()) << test.policy;
355 } 355 }
356 } 356 }
357 357
358 } // namespace blink 358 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/DragUpdateTest.cpp ('k') | Source/core/editing/EditingTestBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698