Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The only tricky part is deciding for each occurrence whether to replace it with IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the shortest one that worked given the existing "using namespace" declarations.
This commit is contained in:
@@ -3042,7 +3042,7 @@ public:
|
||||
if (!mElement) {
|
||||
return;
|
||||
}
|
||||
gfxIntSize size;
|
||||
gfx::IntSize size;
|
||||
{
|
||||
MutexAutoLock lock(mMutex);
|
||||
size = mInitialSize;
|
||||
@@ -3056,13 +3056,13 @@ public:
|
||||
const MediaSegment& aQueuedMedia) override
|
||||
{
|
||||
MutexAutoLock lock(mMutex);
|
||||
if (mInitialSize != gfxIntSize(0,0) ||
|
||||
if (mInitialSize != gfx::IntSize(0,0) ||
|
||||
aQueuedMedia.GetType() != MediaSegment::VIDEO) {
|
||||
return;
|
||||
}
|
||||
const VideoSegment& video = static_cast<const VideoSegment&>(aQueuedMedia);
|
||||
for (VideoSegment::ConstChunkIterator c(video); !c.IsEnded(); c.Next()) {
|
||||
if (c->mFrame.GetIntrinsicSize() != gfxIntSize(0,0)) {
|
||||
if (c->mFrame.GetIntrinsicSize() != gfx::IntSize(0,0)) {
|
||||
mInitialSize = c->mFrame.GetIntrinsicSize();
|
||||
nsCOMPtr<nsIRunnable> event =
|
||||
NS_NewRunnableMethod(this, &StreamSizeListener::ReceivedSize);
|
||||
@@ -3077,7 +3077,7 @@ private:
|
||||
|
||||
// mMutex protects the fields below; they can be accessed on any thread
|
||||
Mutex mMutex;
|
||||
gfxIntSize mInitialSize;
|
||||
gfx::IntSize mInitialSize;
|
||||
};
|
||||
|
||||
class HTMLMediaElement::MediaStreamTracksAvailableCallback:
|
||||
|
||||
Reference in New Issue
Block a user