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

Side by Side Diff: Source/core/layout/LayoutTestHelper.cpp

Issue 1028383002: Enable new multicol for testing and experimental web platform features. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Need to mark virtual/slimmingpaint/svg/text/columns-do-not-apply.html as failing too. Created 5 years, 9 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/layout/LayoutObject.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/layout/LayoutTestHelper.h" 6 #include "core/layout/LayoutTestHelper.h"
7 7
8 #include "core/loader/EmptyClients.h" 8 #include "core/loader/EmptyClients.h"
9 #include "platform/graphics/GraphicsLayer.h" 9 #include "platform/graphics/GraphicsLayer.h"
10 #include "platform/graphics/GraphicsLayerFactory.h" 10 #include "platform/graphics/GraphicsLayerFactory.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 }; 29 };
30 30
31 void RenderingTest::SetUp() 31 void RenderingTest::SetUp()
32 { 32 {
33 fillWithEmptyClients(m_pageClients); 33 fillWithEmptyClients(m_pageClients);
34 static FakeChromeClient* chromeClient = adoptPtr(new FakeChromeClient).leakP tr(); 34 static FakeChromeClient* chromeClient = adoptPtr(new FakeChromeClient).leakP tr();
35 m_pageClients.chromeClient = chromeClient; 35 m_pageClients.chromeClient = chromeClient;
36 m_pageHolder = DummyPageHolder::create(IntSize(800, 600), &m_pageClients); 36 m_pageHolder = DummyPageHolder::create(IntSize(800, 600), &m_pageClients);
37 37
38 document().settings()->setRegionBasedColumnsEnabled(true);
39
40 // This ensures that the minimal DOM tree gets attached 38 // This ensures that the minimal DOM tree gets attached
41 // correctly for tests that don't call setBodyInnerHTML. 39 // correctly for tests that don't call setBodyInnerHTML.
42 document().view()->updateLayoutAndStyleIfNeededRecursive(); 40 document().view()->updateLayoutAndStyleIfNeededRecursive();
43 } 41 }
44 42
45 43
46 } // namespace blink 44 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698