Diff
Modified: trunk/Source/WebKit/ChangeLog (221536 => 221537)
--- trunk/Source/WebKit/ChangeLog 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/ChangeLog 2017-09-02 10:48:34 UTC (rev 221537)
@@ -1,5 +1,33 @@
2017-09-02 Tim Horton <[email protected]>
+ Fix some style issues in the Web Process part of the Remote Layer Tree code
+ https://bugs.webkit.org/show_bug.cgi?id=176272
+
+ Reviewed by Dan Bernstein.
+
+ In bug 176271, the style bot noticed some existing style issues in the UI-side
+ compositing code. Fix them, because there aren't many and they're straightforward.
+
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/GraphicsLayerCARemote.cpp:
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/PlatformCAAnimationRemote.h:
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/PlatformCAAnimationRemote.mm:
+ (WebKit::PlatformCAAnimationRemote::setValues):
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/PlatformCALayerRemote.cpp:
+ (WebKit::PlatformCALayerRemote::appendSublayer):
+ (WebKit::PlatformCALayerRemote::insertSublayer):
+ (WebKit::PlatformCALayerRemote::replaceSublayer):
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/PlatformCALayerRemote.h:
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/PlatformCALayerRemoteCustom.mm:
+ (WebKit::PlatformCALayerRemoteCustom::clone const):
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/PlatformCALayerRemoteTiledBacking.h:
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/RemoteLayerTreeContext.h:
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:
+ (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/RemoteScrollingCoordinator.h:
+ * WebProcess/WebPage/Cocoa/RemoteLayerTree/RemoteScrollingCoordinator.mm:
+
+2017-09-02 Tim Horton <[email protected]>
+
Move Web Process part of the Remote Layer Tree code out of a Mac-specific directory
https://bugs.webkit.org/show_bug.cgi?id=176271
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.cpp (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.cpp 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.cpp 2017-09-02 10:48:34 UTC (rev 221537)
@@ -25,6 +25,7 @@
#include "config.h"
#include "GraphicsLayerCARemote.h"
+
#include "PlatformCAAnimationRemote.h"
#include "PlatformCALayerRemote.h"
#include <WebCore/PlatformScreen.h>
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.h (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.h 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.h 2017-09-02 10:48:34 UTC (rev 221537)
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PlatformCAAnimationRemote_h
-#define PlatformCAAnimationRemote_h
+#pragma once
#include <WebCore/PlatformCAAnimation.h>
#include <wtf/HashMap.h>
@@ -307,5 +306,3 @@
} // namespace WebKit
SPECIALIZE_TYPE_TRAITS_CAANIMATION(WebKit::PlatformCAAnimationRemote, isPlatformCAAnimationRemote())
-
-#endif // PlatformCAAnimationRemote_h
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm 2017-09-02 10:48:34 UTC (rev 221537)
@@ -602,7 +602,7 @@
{
if (animationType() != Keyframe)
return;
-
+
Vector<KeyframeValue> keyframes;
keyframes.reserveInitialCapacity(values.size());
@@ -616,7 +616,7 @@
{
if (animationType() != Keyframe)
return;
-
+
Vector<KeyframeValue> keyframes;
keyframes.reserveInitialCapacity(values.size());
@@ -630,7 +630,7 @@
{
if (animationType() != Keyframe)
return;
-
+
Vector<KeyframeValue> keyframes;
keyframes.reserveInitialCapacity(values.size());
@@ -646,7 +646,7 @@
if (animationType() != Keyframe)
return;
-
+
Vector<KeyframeValue> keyframes;
keyframes.reserveInitialCapacity(values.size());
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp 2017-09-02 10:48:34 UTC (rev 221537)
@@ -277,7 +277,7 @@
void PlatformCALayerRemote::appendSublayer(PlatformCALayer& layer)
{
- Ref<PlatformCALayer> layerProtector(layer);
+ Ref<PlatformCALayer> protectedLayer(layer);
layer.removeFromSuperlayer();
m_children.append(&layer);
@@ -287,7 +287,7 @@
void PlatformCALayerRemote::insertSublayer(PlatformCALayer& layer, size_t index)
{
- Ref<PlatformCALayer> layerProtector(layer);
+ Ref<PlatformCALayer> protectedLayer(layer);
layer.removeFromSuperlayer();
m_children.insert(index, &layer);
@@ -298,7 +298,7 @@
void PlatformCALayerRemote::replaceSublayer(PlatformCALayer& reference, PlatformCALayer& layer)
{
ASSERT(reference.superlayer() == this);
- Ref<PlatformCALayer> layerProtector(layer);
+ Ref<PlatformCALayer> protectedLayer(layer);
layer.removeFromSuperlayer();
size_t referenceIndex = m_children.find(&reference);
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.h (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.h 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.h 2017-09-02 10:48:34 UTC (rev 221537)
@@ -195,7 +195,7 @@
RemoteLayerTreeContext* context() const { return m_context; }
protected:
- PlatformCALayerRemote(WebCore::PlatformCALayer::LayerType, WebCore::PlatformCALayerClient* owner, RemoteLayerTreeContext& context);
+ PlatformCALayerRemote(WebCore::PlatformCALayer::LayerType, WebCore::PlatformCALayerClient* owner, RemoteLayerTreeContext&);
PlatformCALayerRemote(const PlatformCALayerRemote&, WebCore::PlatformCALayerClient*, RemoteLayerTreeContext&);
void updateClonedLayerProperties(PlatformCALayerRemote& clone, bool copyContents = true) const;
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteCustom.mm (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteCustom.mm 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteCustom.mm 2017-09-02 10:48:34 UTC (rev 221537)
@@ -109,9 +109,9 @@
if ([platformLayer() isKindOfClass:getAVPlayerLayerClass()]) {
clonedLayer = adoptNS([allocAVPlayerLayerInstance() init]);
- AVPlayerLayer* destinationPlayerLayer = static_cast<AVPlayerLayer *>(clonedLayer.get());
- AVPlayerLayer* sourcePlayerLayer = static_cast<AVPlayerLayer *>(platformLayer());
- dispatch_async(dispatch_get_main_queue(), ^{
+ AVPlayerLayer *destinationPlayerLayer = static_cast<AVPlayerLayer *>(clonedLayer.get());
+ AVPlayerLayer *sourcePlayerLayer = static_cast<AVPlayerLayer *>(platformLayer());
+ dispatch_async(dispatch_get_main_queue(), [destinationPlayerLayer, sourcePlayerLayer] {
[destinationPlayerLayer setPlayer:[sourcePlayerLayer player]];
});
} else {
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteTiledBacking.h (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteTiledBacking.h 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteTiledBacking.h 2017-09-02 10:48:34 UTC (rev 221537)
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PlatformCALayerRemoteTiledBacking_h
-#define PlatformCALayerRemoteTiledBacking_h
+#pragma once
#include "PlatformCALayerRemote.h"
#include <WebCore/TileController.h>
@@ -71,5 +70,3 @@
};
} // namespace WebKit
-
-#endif // PlatformCALayerRemoteTiledBacking_h
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h 2017-09-02 10:48:34 UTC (rev 221537)
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RemoteLayerTreeContext_h
-#define RemoteLayerTreeContext_h
+#pragma once
#include "LayerTreeContext.h"
#include "RemoteLayerBackingStoreCollection.h"
@@ -95,5 +94,3 @@
};
} // namespace WebKit
-
-#endif // RemoteLayerTreeContext_h
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm 2017-09-02 10:48:34 UTC (rev 221537)
@@ -346,10 +346,10 @@
if (m_scrolledViewExposedRect)
visibleRect.intersect(m_scrolledViewExposedRect.value());
- RefPtr<WebPage> retainedPage = &m_webPage;
- [CATransaction addCommitHandler:[retainedPage] {
- if (Page* corePage = retainedPage->corePage()) {
- if (Frame* coreFrame = retainedPage->mainFrame())
+ RefPtr<WebPage> protectedWebPage = &m_webPage;
+ [CATransaction addCommitHandler:[protectedWebPage] {
+ if (Page* corePage = protectedWebPage->corePage()) {
+ if (Frame* coreFrame = protectedWebPage->mainFrame())
corePage->inspectorController().didComposite(*coreFrame);
}
} forPhase:kCATransactionPhasePostCommit];
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.h (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.h 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.h 2017-09-02 10:48:34 UTC (rev 221537)
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RemoteScrollingCoordinator_h
-#define RemoteScrollingCoordinator_h
+#pragma once
#if ENABLE(ASYNC_SCROLLING)
@@ -82,5 +81,3 @@
SPECIALIZE_TYPE_TRAITS_SCROLLING_COORDINATOR(WebKit::RemoteScrollingCoordinator, isRemoteScrollingCoordinator());
#endif // ENABLE(ASYNC_SCROLLING)
-
-#endif // RemoteScrollingCoordinator_h
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.mm (221536 => 221537)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.mm 2017-09-02 09:38:13 UTC (rev 221536)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.mm 2017-09-02 10:48:34 UTC (rev 221537)
@@ -36,9 +36,9 @@
#import "WebCoreArgumentCoders.h"
#import "WebPage.h"
#import "WebProcess.h"
+#import <WebCore/Frame.h>
+#import <WebCore/FrameView.h>
#import <WebCore/GraphicsLayer.h>
-#import <WebCore/FrameView.h>
-#import <WebCore/Frame.h>
#import <WebCore/RenderLayerCompositor.h>
#import <WebCore/RenderView.h>
#import <WebCore/ScrollingTreeFixedNode.h>