| Summary: | Adjustments to CueBox CSS Width calculations | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Roger Fong <roger_fong> | ||||
| Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bfulgham, calvaris, commit-queue, eric.carlson, esprehn+autocc, glenn, gyuyoung.kim, jer.noble, jonlee, mark.lam, philipj, roger_fong, sergio | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Roger Fong
2014-08-08 10:58:45 PDT
Created attachment 236293 [details]
patch
Comment on attachment 236293 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=236293&action=review r=me with a few nits. Thanks! > Source/WebCore/html/shadow/MediaControlElements.cpp:1243 > + toVTTCue(cue)->shouldChange(); The call to setFontSize should set m_displayTreeShouldChange automatically. > Source/WebCore/html/track/TextTrackCueGeneric.cpp:87 > + setInlineStyleProperty(CSSPropertyWidth, std::min(size * multiplier, 100.0f), CSSPrimitiveValue::CSS_PERCENTAGE); Nit:The "f" isn't necessary, "100.0" should be sufficient. > Source/WebCore/html/track/TextTrackCueGeneric.cpp:89 > + setInlineStyleProperty(CSSPropertyHeight, std::min(size * multiplier, 100.0f), CSSPrimitiveValue::CSS_PERCENTAGE); Ditto. > Source/WebCore/html/track/VTTCue.cpp:176 > + setInlineStyleProperty(CSSPropertyWidth, std::min(static_cast<float>(m_cue.getCSSSize() * multiplier), 100.0f), CSSPrimitiveValue::CSS_PERCENTAGE); Ditto. > Source/WebCore/html/track/VTTCue.cpp:184 > + setInlineStyleProperty(CSSPropertyMaxHeight, 100.0 - position.second, CSSPrimitiveValue::CSS_PERCENTAGE); Ditto. *** Bug 135720 has been marked as a duplicate of this bug. *** |