114
114
#include " PointerLockController.h"
115
115
#include " PopStateEvent.h"
116
116
#include " ProcessingInstruction.h"
117
+ #include " RenderLayerCompositor.h"
117
118
#include " RenderView.h"
118
119
#include " RenderWidget.h"
119
120
#include " ResourceLoadScheduler.h"
152
153
#include < wtf/TemporaryChange.h>
153
154
#include < wtf/text/StringBuffer.h>
154
155
155
- #if USE(ACCELERATED_COMPOSITING)
156
- #include " RenderLayerCompositor.h"
157
- #endif
158
-
159
156
#if ENABLE(SHARED_WORKERS)
160
157
#include " SharedWorkerRepository.h"
161
158
#endif
@@ -1242,10 +1239,8 @@ void Document::setVisualUpdatesAllowed(bool visualUpdatesAllowed)
1242
1239
}
1243
1240
}
1244
1241
1245
- #if USE(ACCELERATED_COMPOSITING)
1246
1242
if (view ())
1247
1243
view ()->updateCompositingLayersAfterLayout ();
1248
- #endif
1249
1244
1250
1245
if (RenderView* renderView = this ->renderView ())
1251
1246
renderView->repaintViewAndCompositedLayers ();
@@ -1751,9 +1746,7 @@ void Document::recalcStyle(Style::Change change)
1751
1746
1752
1747
Style::resolveTree (*this , change);
1753
1748
1754
- #if USE(ACCELERATED_COMPOSITING)
1755
1749
frameView.updateCompositingLayersAfterStyleChange ();
1756
- #endif
1757
1750
1758
1751
clearNeedsStyleRecalc ();
1759
1752
clearChildNeedsStyleRecalc ();
@@ -1956,9 +1949,7 @@ void Document::createRenderTree()
1956
1949
m_renderView = createRenderer<RenderView>(*this , RenderStyle::create ());
1957
1950
Node::setRenderer (m_renderView.get ());
1958
1951
1959
- #if USE(ACCELERATED_COMPOSITING)
1960
1952
renderView ()->setIsInWindow (true );
1961
- #endif
1962
1953
1963
1954
recalcStyle (Style ::Force);
1964
1955
}
@@ -4077,10 +4068,8 @@ void Document::setInPageCache(bool flag)
4077
4068
4078
4069
void Document::documentWillBecomeInactive ()
4079
4070
{
4080
- #if USE(ACCELERATED_COMPOSITING)
4081
4071
if (renderView ())
4082
4072
renderView ()->setIsInWindow (false );
4083
- #endif
4084
4073
}
4085
4074
4086
4075
void Document::documentWillSuspendForPageCache ()
@@ -4106,10 +4095,8 @@ void Document::documentDidResumeFromPageCache()
4106
4095
for (Vector<Element*>::iterator i = elements.begin (); i != end; ++i)
4107
4096
(*i)->documentDidResumeFromPageCache ();
4108
4097
4109
- #if USE(ACCELERATED_COMPOSITING)
4110
4098
if (renderView ())
4111
4099
renderView ()->setIsInWindow (true );
4112
- #endif
4113
4100
4114
4101
ASSERT (page ());
4115
4102
page ()->lockAllOverlayScrollbarsToHidden (false );
@@ -5008,12 +4995,10 @@ void Document::windowScreenDidChange(PlatformDisplayID displayID)
5008
4995
m_scriptedAnimationController->windowScreenDidChange (displayID);
5009
4996
#endif
5010
4997
5011
- #if USE(ACCELERATED_COMPOSITING)
5012
4998
if (RenderView* view = renderView ()) {
5013
4999
if (view->usesCompositing ())
5014
5000
view->compositor ().windowScreenDidChange (displayID);
5015
5001
}
5016
- #endif
5017
5002
}
5018
5003
5019
5004
String Document::displayStringModifiedByEncoding (const String& str) const
0 commit comments