| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/html/track/TextTrackRegion.h" | 35 #include "core/html/track/TextTrackRegion.h" |
| 36 | 36 |
| 37 #include "core/dom/ClientRect.h" | 37 #include "core/dom/ClientRect.h" |
| 38 #include "core/dom/ExceptionCodePlaceholder.h" | 38 #include "core/dom/ExceptionCodePlaceholder.h" |
| 39 #include "core/html/DOMTokenList.h" | 39 #include "core/html/DOMTokenList.h" |
| 40 #include "core/html/HTMLDivElement.h" | 40 #include "core/html/HTMLDivElement.h" |
| 41 #include "core/html/track/WebVTTParser.h" | 41 #include "core/html/track/WebVTTParser.h" |
| 42 #include "core/platform/Logging.h" | 42 #include "core/platform/Logging.h" |
| 43 #include "core/rendering/RenderInline.h" | 43 #include "core/rendering/RenderInline.h" |
| 44 #include "core/rendering/RenderObject.h" | 44 #include "core/rendering/RenderObject.h" |
| 45 #include <wtf/MathExtras.h> | 45 #include "wtf/MathExtras.h" |
| 46 #include <wtf/text/StringBuilder.h> | 46 #include "wtf/text/StringBuilder.h" |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 // The following values default values are defined within the WebVTT Regions Spe
c. | 50 // The following values default values are defined within the WebVTT Regions Spe
c. |
| 51 // https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/region.html | 51 // https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/region.html |
| 52 | 52 |
| 53 // The region occupies by default 100% of the width of the video viewport. | 53 // The region occupies by default 100% of the width of the video viewport. |
| 54 static const float defaultWidth = 100; | 54 static const float defaultWidth = 100; |
| 55 | 55 |
| 56 // The region has, by default, 3 lines of text. | 56 // The region has, by default, 3 lines of text. |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 { | 497 { |
| 498 LOG(Media, "TextTrackRegion::scrollTimerFired"); | 498 LOG(Media, "TextTrackRegion::scrollTimerFired"); |
| 499 | 499 |
| 500 stopTimer(); | 500 stopTimer(); |
| 501 displayLastTextTrackCueBox(); | 501 displayLastTextTrackCueBox(); |
| 502 } | 502 } |
| 503 | 503 |
| 504 } // namespace WebCore | 504 } // namespace WebCore |
| 505 | 505 |
| 506 #endif | 506 #endif |
| OLD | NEW |