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

Issue 22145005: Refactor code for <img> size calculation during attach (Closed)

Created:
7 years, 4 months ago by spartha
Modified:
7 years, 4 months ago
Reviewers:
esprehn, eseidel
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Refactor code for <img> size calculation during attach Based on the changes in revision 155294, the call to setImageSizeForAltText was being done twice when the "src" changed between non-empty URL to a empty one . First by RenderImageResource::setCachedImage and then follwed by a explicit call to setImageSizeForAltText in attach. Added checks to avoid unnecessary call to setImageSizeForAltText. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155583

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M Source/core/html/HTMLImageElement.cpp View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
spartha
Refactored the code to avoid additional call to setImageSizeForAltText. Please review the changes. Thanks!
7 years, 4 months ago (2013-08-05 14:37:58 UTC) #1
esprehn
LGTM.
7 years, 4 months ago (2013-08-06 04:33:24 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/22145005/1
7 years, 4 months ago (2013-08-06 05:04:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/22145005/1
7 years, 4 months ago (2013-08-06 05:47:42 UTC) #4
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 07:31:59 UTC) #5
Message was sent while issue was closed.
Change committed as 155583

Powered by Google App Engine
This is Rietveld 408576698