Summary: | BitmapImage duplicates code to calculate size | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||
Component: | Images | Assignee: | Dean Jackson <dino> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | simon.fraser, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Dean Jackson
2012-06-21 18:31:47 PDT
Created attachment 148938 [details]
Patch
Comment on attachment 148938 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=148938&action=review > Source/WebCore/ChangeLog:21 > + * platform/graphics/BitmapImage.cpp: > + (WebCore::BitmapImage::updateSize): > + (WebCore): > + (WebCore::BitmapImage::size): > + (WebCore::BitmapImage::sizeRespectingOrientation): > + * platform/graphics/BitmapImage.h: > + (BitmapImage): I really like per-function comments, and here they would be so easy to write! > Source/WebCore/platform/graphics/BitmapImage.cpp:183 > if (m_sizeAvailable && !m_haveSize) { Might be nice to use early return since this function now is only about updating. > Source/WebCore/platform/graphics/BitmapImage.h:267 > + void updateSize() const; This could be private rather than protected. Committed r121048: <http://trac.webkit.org/changeset/121048> |