Title: [264241] trunk/Source/WebCore
- Revision
- 264241
- Author
- [email protected]
- Date
- 2020-07-10 14:57:57 -0700 (Fri, 10 Jul 2020)
Log Message
Removing usage of "using namespace WebCore" from TextTrackRepresentationCocoa.mm
https://bugs.webkit.org/show_bug.cgi?id=214196
Patch by Guowei Yang <[email protected]> on 2020-07-10
Reviewed by Tim Horton.
The line "using namespace WebCore" will cause problems
when compiling unified source. Removing this line and
replace it with WebCore::prefix and namespace WebCore{ }
to enclose C++ calls.
No new tests are requied as this is a code style fix
* platform/graphics/cocoa/TextTrackRepresentationCocoa.mm: removed usage
of "using namespace WebCore" to avoid future errors while compiling
(-[WebCoreTextTrackRepresentationCocoaHelper initWithParent:]): added "WebCore::" prefix
(-[WebCoreTextTrackRepresentationCocoaHelper setParent:]): ditto
(-[WebCoreTextTrackRepresentationCocoaHelper parent]): ditto
(TextTrackRepresentation::create): enclosed inside namespace WebCore{ }
(TextTrackRepresentationCocoa::TextTrackRepresentationCocoa): Deleted.
enclosed inside namespace WebCore{ }
(TextTrackRepresentationCocoa::~TextTrackRepresentationCocoa): ditto
(TextTrackRepresentationCocoa::update): ditto
(TextTrackRepresentationCocoa::setContentScale): ditto
(TextTrackRepresentationCocoa::setHidden const): ditto
(TextTrackRepresentationCocoa::bounds const): ditto
(TextTrackRepresentationCocoa::boundsChanged): ditto
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (264240 => 264241)
--- trunk/Source/WebCore/ChangeLog 2020-07-10 21:54:00 UTC (rev 264240)
+++ trunk/Source/WebCore/ChangeLog 2020-07-10 21:57:57 UTC (rev 264241)
@@ -1,3 +1,32 @@
+2020-07-10 Guowei Yang <[email protected]>
+
+ Removing usage of "using namespace WebCore" from TextTrackRepresentationCocoa.mm
+ https://bugs.webkit.org/show_bug.cgi?id=214196
+
+ Reviewed by Tim Horton.
+
+ The line "using namespace WebCore" will cause problems
+ when compiling unified source. Removing this line and
+ replace it with WebCore::prefix and namespace WebCore{ }
+ to enclose C++ calls.
+
+ No new tests are requied as this is a code style fix
+
+ * platform/graphics/cocoa/TextTrackRepresentationCocoa.mm: removed usage
+ of "using namespace WebCore" to avoid future errors while compiling
+ (-[WebCoreTextTrackRepresentationCocoaHelper initWithParent:]): added "WebCore::" prefix
+ (-[WebCoreTextTrackRepresentationCocoaHelper setParent:]): ditto
+ (-[WebCoreTextTrackRepresentationCocoaHelper parent]): ditto
+ (TextTrackRepresentation::create): enclosed inside namespace WebCore{ }
+ (TextTrackRepresentationCocoa::TextTrackRepresentationCocoa): Deleted.
+ enclosed inside namespace WebCore{ }
+ (TextTrackRepresentationCocoa::~TextTrackRepresentationCocoa): ditto
+ (TextTrackRepresentationCocoa::update): ditto
+ (TextTrackRepresentationCocoa::setContentScale): ditto
+ (TextTrackRepresentationCocoa::setHidden const): ditto
+ (TextTrackRepresentationCocoa::bounds const): ditto
+ (TextTrackRepresentationCocoa::boundsChanged): ditto
+
2020-07-10 Peng Liu <[email protected]>
MobileSafari rotates its scene to portrait upside down if it has a PiP on screen
Modified: trunk/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm (264240 => 264241)
--- trunk/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm 2020-07-10 21:54:00 UTC (rev 264240)
+++ trunk/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm 2020-07-10 21:57:57 UTC (rev 264241)
@@ -39,17 +39,16 @@
#import <pal/spi/cocoa/QuartzCoreSPI.h>
-using namespace WebCore;
@interface WebCoreTextTrackRepresentationCocoaHelper : NSObject <CALayerDelegate> {
- TextTrackRepresentationCocoa* _parent;
+ WebCore::TextTrackRepresentationCocoa* _parent;
}
-- (id)initWithParent:(TextTrackRepresentationCocoa*)parent;
-@property (assign) TextTrackRepresentationCocoa* parent;
+- (id)initWithParent:(WebCore::TextTrackRepresentationCocoa*)parent;
+@property (assign) WebCore::TextTrackRepresentationCocoa* parent;
@end
@implementation WebCoreTextTrackRepresentationCocoaHelper
-- (id)initWithParent:(TextTrackRepresentationCocoa*)parent
+- (id)initWithParent:(WebCore::TextTrackRepresentationCocoa*)parent
{
if (!(self = [super init]))
return nil;
@@ -65,7 +64,7 @@
[super dealloc];
}
-- (void)setParent:(TextTrackRepresentationCocoa*)parent
+- (void)setParent:(WebCore::TextTrackRepresentationCocoa*)parent
{
if (_parent)
[_parent->platformLayer() removeObserver:self forKeyPath:@"bounds"];
@@ -76,7 +75,7 @@
[_parent->platformLayer() addObserver:self forKeyPath:@"bounds" options:0 context:0];
}
-- (TextTrackRepresentationCocoa*)parent
+- (WebCore::TextTrackRepresentationCocoa*)parent
{
return _parent;
}
@@ -106,6 +105,8 @@
@end
+namespace WebCore {
+
std::unique_ptr<TextTrackRepresentation> TextTrackRepresentation::create(TextTrackRepresentationClient& client)
{
return makeUnique<TextTrackRepresentationCocoa>(client);
@@ -154,4 +155,6 @@
});
}
+} // namespace WebCore
+
#endif // (PLATFORM(IOS_FAMILY) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE))) && ENABLE(VIDEO)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes