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

Side by Side Diff: Source/core/dom/StyleElement.h

Issue 28553005: Avoid parsing css text if there are identical inline style blocks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Rob Buis 2 * Copyright (C) 2006, 2007 Rob Buis
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 RefPtr<CSSStyleSheet> m_sheet; 54 RefPtr<CSSStyleSheet> m_sheet;
55 55
56 private: 56 private:
57 void createSheet(Element*, const String& text = String()); 57 void createSheet(Element*, const String& text = String());
58 void process(Element*); 58 void process(Element*);
59 void clearSheet(); 59 void clearSheet();
60 60
61 bool m_createdByParser; 61 bool m_createdByParser;
62 bool m_loading; 62 bool m_loading;
63 TextPosition m_startPosition; 63 TextPosition m_startPosition;
64
65 AtomicString m_sheetText;
64 }; 66 };
65 67
66 } 68 }
67 69
68 #endif 70 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698