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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index 6bb88c90ca111a263e6baf5202ca4ee82d828b23..b363bf66a4441cf1d3297be461e08bd5fc827a2c 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -120,7 +120,8 @@ void HTMLVideoElement::parseAttribute(const QualifiedName& name,
// In case the poster attribute is set after playback, don't update the
// display state, post playback the correct state will be picked up.
if (getDisplayMode() < Video || !hasAvailableVideoFrame()) {
- // Force a poster recalc by setting m_displayMode to Unknown directly before calling updateDisplayState.
+ // Force a poster recalc by setting m_displayMode to Unknown directly
+ // before calling updateDisplayState.
HTMLMediaElement::setDisplayMode(Unknown);
updateDisplayState();
}
@@ -169,10 +170,10 @@ void HTMLVideoElement::setDisplayMode(DisplayMode mode) {
KURL poster = posterImageURL();
if (!poster.isEmpty()) {
- // We have a poster path, but only show it until the user triggers display by playing or seeking and the
- // media engine has something to display.
- // Don't show the poster if there is a seek operation or
- // the video has restarted because of loop attribute
+ // We have a poster path, but only show it until the user triggers display
+ // by playing or seeking and the media engine has something to display.
+ // Don't show the poster if there is a seek operation or the video has
+ // restarted because of loop attribute
if (mode == Video && oldMode == Poster && !hasAvailableVideoFrame())
return;
}
@@ -300,7 +301,8 @@ PassRefPtr<Image> HTMLVideoElement::getSourceImageForCanvas(
}
IntSize intrinsicSize(videoWidth(), videoHeight());
- // FIXME: Not sure if we dhould we be doing anything with the AccelerationHint argument here?
+ // FIXME: Not sure if we dhould we be doing anything with the AccelerationHint
+ // argument here?
std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::create(intrinsicSize);
if (!imageBuffer) {
*status = InvalidSourceImageStatus;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElement.h ('k') | third_party/WebKit/Source/core/html/HTMLViewSourceDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698