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

Side by Side Diff: Source/WebCore/css/CSSStyleSheet.h

Issue 12518025: Merge 144713 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/css/stylesheet.innerHTML-calls-didmutate-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // IE Extensions 67 // IE Extensions
68 PassRefPtr<CSSRuleList> rules(); 68 PassRefPtr<CSSRuleList> rules();
69 int addRule(const String& selector, const String& style, int index, Exceptio nCode&); 69 int addRule(const String& selector, const String& style, int index, Exceptio nCode&);
70 int addRule(const String& selector, const String& style, ExceptionCode&); 70 int addRule(const String& selector, const String& style, ExceptionCode&);
71 void removeRule(unsigned index, ExceptionCode& ec) { deleteRule(index, ec); } 71 void removeRule(unsigned index, ExceptionCode& ec) { deleteRule(index, ec); }
72 72
73 // For CSSRuleList. 73 // For CSSRuleList.
74 unsigned length() const; 74 unsigned length() const;
75 CSSRule* item(unsigned index); 75 CSSRule* item(unsigned index);
76 76
77 virtual void clearOwnerNode() OVERRIDE { m_ownerNode = 0; } 77 virtual void clearOwnerNode() OVERRIDE { didMutate(); m_ownerNode = 0; }
78 virtual CSSImportRule* ownerRule() const OVERRIDE { return m_ownerRule; } 78 virtual CSSImportRule* ownerRule() const OVERRIDE { return m_ownerRule; }
79 virtual KURL baseURL() const OVERRIDE; 79 virtual KURL baseURL() const OVERRIDE;
80 virtual bool isLoading() const OVERRIDE; 80 virtual bool isLoading() const OVERRIDE;
81 81
82 void clearOwnerRule() { m_ownerRule = 0; } 82 void clearOwnerRule() { m_ownerRule = 0; }
83 Document* ownerDocument() const; 83 Document* ownerDocument() const;
84 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } 84 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
85 void setMediaQueries(PassRefPtr<MediaQuerySet>); 85 void setMediaQueries(PassRefPtr<MediaQuerySet>);
86 void setTitle(const String& title) { m_title = title; } 86 void setTitle(const String& title) { m_title = title; }
87 87
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() 147 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope()
148 { 148 {
149 if (m_styleSheet) 149 if (m_styleSheet)
150 m_styleSheet->didMutateRules(); 150 m_styleSheet->didMutateRules();
151 } 151 }
152 152
153 } // namespace 153 } // namespace
154 154
155 #endif 155 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/stylesheet.innerHTML-calls-didmutate-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698