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

Side by Side Diff: Source/core/html/track/vtt/VTTRegion.cpp

Issue 244493002: Oilpan: add transition types to track interface objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add crbug.com/365260 crashing test + expectation Created 6 years, 8 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
« no previous file with comments | « Source/core/html/track/vtt/VTTRegion.h ('k') | Source/core/html/track/vtt/VTTRegion.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 return false; 81 return false;
82 } 82 }
83 83
84 VTTRegion::VTTRegion() 84 VTTRegion::VTTRegion()
85 : m_id(emptyString()) 85 : m_id(emptyString())
86 , m_width(defaultWidth) 86 , m_width(defaultWidth)
87 , m_heightInLines(defaultHeightInLines) 87 , m_heightInLines(defaultHeightInLines)
88 , m_regionAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY)) 88 , m_regionAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY))
89 , m_viewportAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY)) 89 , m_viewportAnchor(FloatPoint(defaultAnchorPointX, defaultAnchorPointY))
90 , m_scroll(defaultScroll) 90 , m_scroll(defaultScroll)
91 , m_track(0) 91 , m_track(nullptr)
92 , m_currentTop(0) 92 , m_currentTop(0)
93 , m_scrollTimer(this, &VTTRegion::scrollTimerFired) 93 , m_scrollTimer(this, &VTTRegion::scrollTimerFired)
94 { 94 {
95 } 95 }
96 96
97 VTTRegion::~VTTRegion() 97 VTTRegion::~VTTRegion()
98 { 98 {
99 } 99 }
100 100
101 void VTTRegion::setTrack(TextTrack* track) 101 void VTTRegion::setTrack(TextTrack* track)
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 void VTTRegion::scrollTimerFired(Timer<VTTRegion>*) 466 void VTTRegion::scrollTimerFired(Timer<VTTRegion>*)
467 { 467 {
468 WTF_LOG(Media, "VTTRegion::scrollTimerFired"); 468 WTF_LOG(Media, "VTTRegion::scrollTimerFired");
469 469
470 stopTimer(); 470 stopTimer();
471 displayLastVTTCueBox(); 471 displayLastVTTCueBox();
472 } 472 }
473 473
474 void VTTRegion::trace(Visitor* visitor)
475 {
476 visitor->trace(m_track);
477 }
478
474 } // namespace WebCore 479 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/VTTRegion.h ('k') | Source/core/html/track/vtt/VTTRegion.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698