Bug 27521 - Move m_context out of generator into superclass
Summary: Move m_context out of generator into superclass
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 27088
  Show dependency treegraph
 
Reported: 2009-07-21 15:07 PDT by Eric Seidel (no email)
Modified: 2009-07-21 23:58 PDT (History)
2 users (show)

See Also:


Attachments
patch (9.00 KB, patch)
2009-07-21 15:09 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff
Move out into a file to fix WebKit build (16.03 KB, patch)
2009-07-21 16:47 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff
Fix WebKit build by moving into new file (16.38 KB, patch)
2009-07-21 16:49 PDT, Eric Seidel (no email)
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-07-21 15:07:11 PDT
Move m_context out of generator into superclass

This will reduce WebCore's code size.  This will also make it easier for me to incrementally move classes over to holding an m_globalObject pointer.
Comment 1 Eric Seidel (no email) 2009-07-21 15:09:59 PDT
Created attachment 33217 [details]
patch
Comment 2 Adam Barth 2009-07-21 15:56:11 PDT
Comment on attachment 33217 [details]
patch

This looks good.  Perl is super ugly.
Comment 3 Eric Seidel (no email) 2009-07-21 16:47:58 PDT
Created attachment 33227 [details]
Move out into a file to fix WebKit build


---
 9 files changed, 113 insertions(+), 43 deletions(-)
Comment 4 Eric Seidel (no email) 2009-07-21 16:49:56 PDT
Created attachment 33228 [details]
Fix WebKit build by moving into new file


---
 9 files changed, 121 insertions(+), 43 deletions(-)
Comment 5 Adam Barth 2009-07-21 17:02:00 PDT
Comment on attachment 33228 [details]
Fix WebKit build by moving into new file

okedoke
Comment 6 Eric Seidel (no email) 2009-07-21 17:08:29 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/WebCore.gypi
	M	WebCore/WebCore.pro
	M	WebCore/WebCore.vcproj/WebCore.vcproj
	M	WebCore/WebCore.xcodeproj/project.pbxproj
	A	WebCore/bindings/js/DOMObjectWithSVGContext.h
	M	WebCore/bindings/js/JSEventCustom.cpp
	M	WebCore/bindings/scripts/CodeGeneratorJS.pm
Committed r46201
	M	WebCore/WebCore.pro
	M	WebCore/ChangeLog
	M	WebCore/WebCore.vcproj/WebCore.vcproj
	M	WebCore/WebCore.gypi
	M	WebCore/bindings/scripts/CodeGeneratorJS.pm
	A	WebCore/bindings/js/DOMObjectWithSVGContext.h
	M	WebCore/bindings/js/JSEventCustom.cpp
	M	WebCore/WebCore.xcodeproj/project.pbxproj
r46201 = ef823b64df0e4d61afa35bb385e3fa577ac0f419 (trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/46201
Comment 7 Sam Weinig 2009-07-21 18:52:48 PDT
Out of curiosity, what is the reason that the context can't be in the JSSVGPODTypeWrapper class?
Comment 8 Adam Barth 2009-07-21 21:50:56 PDT
(In reply to comment #7)
> Out of curiosity, what is the reason that the context can't be in the
> JSSVGPODTypeWrapper class?

The context will eventually move to the impl, so I'm not sure it matters that much were it is in the intermediate term.
Comment 9 Eric Seidel (no email) 2009-07-21 23:58:08 PDT
(In reply to comment #7)
> Out of curiosity, what is the reason that the context can't be in the
> JSSVGPODTypeWrapper class?

Sam is correct, that in the case of POD types, JSSVGPODTypeWrapper is the impl.

For things like SVGPathSeg, those classes will have to change to hold some sort of context pointer.

JSSVGPODTypeWrapper will be the "easy" case.