Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4b302f9c
Commit
4b302f9c
authored
Nov 25, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store nsIDOMCSSStyleSheet in HTMLStyleSheet object if available.
parent
03218d6d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
4 deletions
+47
-4
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
htmlstylesheet.c
dlls/mshtml/htmlstylesheet.c
+13
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
nsiface.idl
dlls/mshtml/nsiface.idl
+32
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
4b302f9c
...
...
@@ -1046,7 +1046,7 @@ static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR
FIXME
(
"(%p)->(%s %ld %p) semi-stub
\n
"
,
This
,
debugstr_w
(
bstrHref
),
lIndex
,
ppnewStyleSheet
);
*
ppnewStyleSheet
=
HTMLStyleSheet_Create
();
*
ppnewStyleSheet
=
HTMLStyleSheet_Create
(
NULL
);
return
S_OK
;
}
...
...
dlls/mshtml/htmlstylesheet.c
View file @
4b302f9c
...
...
@@ -38,7 +38,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
typedef
struct
{
const
IHTMLStyleSheetVtbl
*
lpHTMLStyleSheetVtbl
;
LONG
ref
;
nsIDOMCSSStyleSheet
*
nsstylesheet
;
}
HTMLStyleSheet
;
typedef
struct
{
...
...
@@ -470,12 +473,21 @@ static const IHTMLStyleSheetVtbl HTMLStyleSheetVtbl = {
HTMLStyleSheet_get_rules
};
IHTMLStyleSheet
*
HTMLStyleSheet_Create
(
void
)
IHTMLStyleSheet
*
HTMLStyleSheet_Create
(
nsIDOMStyleSheet
*
nsstylesheet
)
{
HTMLStyleSheet
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLStyleSheet
));
nsresult
nsres
;
ret
->
lpHTMLStyleSheetVtbl
=
&
HTMLStyleSheetVtbl
;
ret
->
ref
=
1
;
ret
->
nsstylesheet
=
NULL
;
if
(
nsstylesheet
)
{
nsres
=
nsIDOMStyleSheet_QueryInterface
(
nsstylesheet
,
&
IID_nsIDOMCSSStyleSheet
,
(
void
**
)
&
ret
->
nsstylesheet
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not get nsICSSStyleSheet interface: %08x
\n
"
,
nsres
);
}
return
HTMLSTYLESHEET
(
ret
);
}
dlls/mshtml/mshtml_private.h
View file @
4b302f9c
...
...
@@ -430,7 +430,7 @@ void set_current_mon(HTMLDocument*,IMoniker*);
IHTMLSelectionObject
*
HTMLSelectionObject_Create
(
HTMLDocument
*
,
nsISelection
*
);
IHTMLTxtRange
*
HTMLTxtRange_Create
(
HTMLDocument
*
,
nsIDOMRange
*
);
IHTMLStyle
*
HTMLStyle_Create
(
nsIDOMCSSStyleDeclaration
*
);
IHTMLStyleSheet
*
HTMLStyleSheet_Create
(
void
);
IHTMLStyleSheet
*
HTMLStyleSheet_Create
(
nsIDOMStyleSheet
*
);
IHTMLStyleSheetsCollection
*
HTMLStyleSheetsCollection_Create
(
nsIDOMStyleSheetList
*
);
void
detach_selection
(
HTMLDocument
*
);
...
...
dlls/mshtml/nsiface.idl
View file @
4b302f9c
...
...
@@ -123,7 +123,8 @@ typedef nsISupports nsIPrincipal;
typedef nsISupports nsIAtom;
typedef nsISupports nsISupportsArray;
typedef nsISupports nsIContentFilter;
typedef nsISupports nsIDOMStyleSheet;
typedef nsISupports nsIDOMMediaList;
typedef nsISupports nsIDOMCSSRuleList;
[
object,
...
...
@@ -572,6 +573,36 @@ interface nsIDOMCSSStyleDeclaration : nsISupports
[
object,
uuid(a6cf9080-15b3-11d2-932e-00805f8add32)
/* FROZEN */
]
interface nsIDOMStyleSheet : nsISupports
{
nsresult GetType(nsAString *aType);
nsresult GetDisabled(PRBool *aDisabled);
nsresult SetDisabled(PRBool aDisabled);
nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
nsresult GetHref(nsAString *aHref);
nsresult GetTitle(nsAString *aTitle);
nsresult GetMedia(nsIDOMMediaList **aMedia);
}
[
object,
uuid(a6cf90c2-15b3-11d2-932e-00805f8add32)
/* FROZEN */
]
interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
{
nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
nsresult DeleteRule(PRUint32 index);
}
[
object,
uuid(a6cf9081-15b3-11d2-932e-00805f8add32)
/* FROZEN */
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment