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

Unified Diff: Source/core/html/HTMLLinkElement.h

Issue 15415004: Refactoring: Make LinkStyle instantiation lazy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed m_disabled Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index 49f1b19ad5805b168f501688ff9e8eb15b97317c..ce818a1d95ce7789c3df7ab63d6199bdfacaf6bb 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -141,11 +141,14 @@ public:
// For LinkStyle
bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loadLink(m_relAttribute, type, url, document()); }
bool isAlternate() const { return m_link->isUnset() && m_relAttribute.isAlternate(); }
- bool shouldProcessStyle();
+ bool shouldProcessStyle() { return linkStyleToProcess(); }
private:
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
+ LinkStyle* linkStyle() const { return m_link.get(); }
+ LinkStyle* linkStyleToProcess();
+
void process();
static void processCallback(Node*);
« no previous file with comments | « no previous file | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698