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

Issue 18278003: Introduce isSVGFontElement() and isSVGImageElement(), and use them (Closed)

Created:
7 years, 5 months ago by gyuyoung-inactive
Modified:
7 years, 5 months ago
Reviewers:
tkent, abarth-chromium
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, f(malita), gavinp+loader_chromium.org, jchaffraix+rendering, pdr, Stephen Chennney, Nate Chapin, jeez
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce isSVGFontElement() and isSVGImageElement(), and use them Let's use isFoo() to enhance readibility in svg element classes. WebKit merge from http://trac.webkit.org/changeset/152524 BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -17 lines) Patch
M Source/core/loader/cache/CachedFont.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/chromium/PasteboardChromium.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGAnimateMotionElement.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGElement.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGFontElement.h View 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/svg/SVGFontElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGFontFaceElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGGlyphElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGHKernElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGImageElement.h View 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/svg/SVGImageElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGLocatable.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGVKernElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
gyuyoung-inactive
Add tkent as reviewer
7 years, 5 months ago (2013-07-11 03:05:38 UTC) #1
tkent
lgtm However, I don't think patches to add just isFoo function is not so valuable. ...
7 years, 5 months ago (2013-07-11 04:09:43 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gyuyoung.kim@samsung.com/18278003/1
7 years, 5 months ago (2013-07-11 04:10:07 UTC) #3
pdr.
What's the reason for adding these? In many cases this pattern hurts readability because it's ...
7 years, 5 months ago (2013-07-11 04:24:25 UTC) #4
tkent
> However, I don't think patches to add just isFoo function is not so valuable. ...
7 years, 5 months ago (2013-07-11 04:31:26 UTC) #5
tkent
On 2013/07/11 04:24:25, pdr wrote: > What's the reason for adding these? In many cases ...
7 years, 5 months ago (2013-07-11 04:35:59 UTC) #6
pdr.
On 2013/07/11 04:35:59, tkent wrote: > On 2013/07/11 04:24:25, pdr wrote: > > What's the ...
7 years, 5 months ago (2013-07-11 04:45:20 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=12797
7 years, 5 months ago (2013-07-11 05:16:35 UTC) #8
tkent
I reconsider this CL, and this does not lgtm for now. Using isFoo with toFoo ...
7 years, 5 months ago (2013-07-11 08:52:31 UTC) #9
gyuyoung-inactive
On 2013/07/11 08:52:31, tkent wrote: > I reconsider this CL, and this does not lgtm ...
7 years, 5 months ago (2013-07-12 01:33:26 UTC) #10
gyuyoung-inactive
On 2013/07/12 01:33:26, gyuyoung wrote: > On 2013/07/11 08:52:31, tkent wrote: > > I reconsider ...
7 years, 5 months ago (2013-07-12 01:35:45 UTC) #11
tkent
On 2013/07/12 01:33:26, gyuyoung wrote: > As you thought, I want to change all hasTagName ...
7 years, 5 months ago (2013-07-12 01:54:02 UTC) #12
gyuyoung-inactive
On 2013/07/12 01:54:02, tkent wrote: > On 2013/07/12 01:33:26, gyuyoung wrote: > > As you ...
7 years, 5 months ago (2013-07-12 04:18:21 UTC) #13
pdr.
> If you think this is still questionable, I also think this again. It looks ...
7 years, 5 months ago (2013-07-15 20:50:32 UTC) #14
gyuyoung-inactive
On 2013/07/15 20:50:32, pdr wrote: > > If you think this is still questionable, I ...
7 years, 5 months ago (2013-07-17 01:21:27 UTC) #15
gyuyoung-inactive
On 2013/07/17 01:21:27, gyuyoung wrote: > @pdr I just read your comment :) Your suggestion ...
7 years, 5 months ago (2013-07-17 01:29:22 UTC) #16
pdr.
On 2013/07/17 01:29:22, gyuyoung wrote: > On 2013/07/17 01:21:27, gyuyoung wrote: > > > @pdr ...
7 years, 5 months ago (2013-07-17 01:52:09 UTC) #17
gyuyoung-inactive
On 2013/07/17 01:52:09, pdr wrote: > On 2013/07/17 01:29:22, gyuyoung wrote: > > On 2013/07/17 ...
7 years, 5 months ago (2013-07-22 11:35:52 UTC) #18
tkent
> @pdr, @tkent, how about adding isSVGChildElement() function to SVGElement.h ? > Then, we only ...
7 years, 5 months ago (2013-07-22 23:44:03 UTC) #19
gyuyoung-inactive
On 2013/07/22 23:44:03, tkent wrote: > > @pdr, @tkent, how about adding isSVGChildElement() function to ...
7 years, 5 months ago (2013-07-23 05:56:30 UTC) #20
tkent
On 2013/07/23 05:56:30, gyuyoung wrote: > If so, how do you think to expand isSVG* ...
7 years, 5 months ago (2013-07-24 02:10:42 UTC) #21
gyuyoung-inactive
7 years, 5 months ago (2013-07-24 03:32:33 UTC) #22
Message was sent while issue was closed.
On 2013/07/24 02:10:42, tkent wrote:
> On 2013/07/23 05:56:30, gyuyoung wrote:
> > If so, how do you think to expand isSVG* function for other SVG classes? As
> you
> > know there are three functions in SVGElement.h.
> > 
> >     virtual bool isSVGStyledElement() const { return false; }
> >     virtual bool isSVGGraphicsElement() const { return false; }
> >     virtual bool isSVGSVGElement() const { return false; }
> > 
> > 
> > Though I don't know why only three functions were added, it looks we can add
> new
> > functions to there.
> 
> hasTagName doesn't work well for these classes because they are used for
> multiple tags. Elements in core/html/shadow/ also use this pattern because we
> can't use hasTagName for them at all.
> 
> Adding other isSVGFooElement member functions would be acceptable only if it
> reduces the code size significantly.  However, I don't think this task is
worth
> to consume your time.

I see. ok, let's stop to think about adding this helper function at the moment.
Thank you for kindly reply. :)

Powered by Google App Engine
This is Rietveld 408576698