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

Issue 1468023002: Rename imageSizeForLayoutObject() to imageSize() (Closed)

Created:
5 years, 1 month ago by davve
Modified:
5 years ago
CC:
aboxhall, aboxhall+watch_chromium.org, blink-reviews, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, jchaffraix+rendering, je_julie, leviw+renderwatch, loading-reviews+fetch_chromium.org, nektarios, nektar+watch_chromium.org, pdr+renderingwatchlist_chromium.org, plundblad+watch_chromium.org, szager+layoutwatch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss, yuzo+watch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename imageSizeForLayoutObject() to imageSize() No need to pass the layout object anymore. It only uses the layout object for knowing whether to respect image orientation or not. We might as well pass that explicitly. BUG=559131 Committed: https://crrev.com/38a64c16c73b14e52fc8246eb7819a64d36f95d4 Cr-Commit-Position: refs/heads/master@{#361892}

Patch Set 1 #

Patch Set 2 : Actually return value too #

Total comments: 22

Patch Set 3 : Make LayoutObject::shouldRespectImageOrientation class static and make use of it #

Total comments: 1

Patch Set 4 : Make shouldRespectImageOrientation a free function #

Patch Set 5 : Bring back ps#3 and fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -42 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 1 chunk +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 2 4 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.cpp View 1 2 4 7 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/ImageInputType.cpp View 1 2 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImageResource.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 4 1 chunk +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ImagePainter.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 41 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468023002/1
5 years, 1 month ago (2015-11-23 11:10:28 UTC) #2
davve
PTAL
5 years, 1 month ago (2015-11-23 11:11:26 UTC) #4
fs
LGTM, but it would be nice if we could cut down on the boilerplate a ...
5 years, 1 month ago (2015-11-23 11:34:36 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/138779)
5 years, 1 month ago (2015-11-23 12:19:05 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468023002/20001
5 years, 1 month ago (2015-11-23 12:49:28 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-23 13:57:36 UTC) #12
Yoav Weiss
A few comments to tidy things up :) https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode72 third_party/WebKit/Source/core/fetch/ImageResource.h:72: bool ...
5 years ago (2015-11-24 10:29:07 UTC) #14
davve
https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/html/HTMLImageElement.cpp File third_party/WebKit/Source/core/html/HTMLImageElement.cpp (right): https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/html/HTMLImageElement.cpp#newcode442 third_party/WebKit/Source/core/html/HTMLImageElement.cpp:442: return imageLoader().image()->imageSize(DoNotRespectImageOrientation, 1.0f).width(); On 2015/11/24 10:29:07, Yoav Weiss wrote: ...
5 years ago (2015-11-24 12:49:14 UTC) #15
Yoav Weiss
https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/html/HTMLImageElement.cpp File third_party/WebKit/Source/core/html/HTMLImageElement.cpp (right): https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/html/HTMLImageElement.cpp#newcode442 third_party/WebKit/Source/core/html/HTMLImageElement.cpp:442: return imageLoader().image()->imageSize(DoNotRespectImageOrientation, 1.0f).width(); On 2015/11/24 12:49:13, David Vest wrote: ...
5 years ago (2015-11-24 13:06:57 UTC) #16
davve
https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/1468023002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode72 third_party/WebKit/Source/core/fetch/ImageResource.h:72: bool canRender() { return !errorOccurred() && !imageSize(DoNotRespectImageOrientation, 1).isEmpty(); } ...
5 years ago (2015-11-24 13:33:34 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468023002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468023002/40001
5 years ago (2015-11-24 14:26:13 UTC) #19
Yoav Weiss
LGTM % nit I have a slight preference to having the shouldRespectImageOrientation function be a ...
5 years ago (2015-11-24 14:59:05 UTC) #20
davve
dmazzoni and Justin Novosad, a friendly ping for a look at modules?
5 years ago (2015-11-24 17:00:45 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468023002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468023002/80001
5 years ago (2015-11-24 17:04:32 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-24 18:51:48 UTC) #25
xidachen
davve@: Is there a timeline on this CL? I would hope that this CL can ...
5 years ago (2015-11-26 02:49:00 UTC) #26
davve
On 2015/11/26 02:49:00, xidachen wrote: > davve@: Is there a timeline on this CL? I ...
5 years ago (2015-11-26 07:55:57 UTC) #27
Yoav Weiss
On 2015/11/26 07:55:57, David Vest wrote: > On 2015/11/26 02:49:00, xidachen wrote: > > davve@: ...
5 years ago (2015-11-26 08:00:19 UTC) #28
davve
Jochen, do you think you can rubberstamp modules/? Core owners has approved and Justin has ...
5 years ago (2015-11-26 08:02:28 UTC) #30
davve
Philip, can you take a look at modules/?
5 years ago (2015-11-26 13:16:06 UTC) #32
jochen (gone - plz use gerrit)
lgtm
5 years ago (2015-11-26 13:18:08 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468023002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468023002/80001
5 years ago (2015-11-26 13:38:42 UTC) #36
xidachen
On 2015/11/26 13:38:42, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years ago (2015-11-26 14:16:24 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-26 14:57:41 UTC) #38
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/38a64c16c73b14e52fc8246eb7819a64d36f95d4 Cr-Commit-Position: refs/heads/master@{#361892}
5 years ago (2015-11-26 14:59:10 UTC) #40
Justin Novosad
5 years ago (2015-11-27 00:58:26 UTC) #41
Message was sent while issue was closed.
post commit lgtm

Powered by Google App Engine
This is Rietveld 408576698