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

Side by Side Diff: Source/core/page/Page.cpp

Issue 23516012: Rename StyleSheetCollections to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/page/PageGroup.cpp » ('j') | 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 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
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 * 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 */ 18 */
19 19
20 #include "config.h" 20 #include "config.h"
21 #include "core/page/Page.h" 21 #include "core/page/Page.h"
22 22
23 #include "core/dom/ClientRectList.h" 23 #include "core/dom/ClientRectList.h"
24 #include "core/dom/DocumentMarkerController.h" 24 #include "core/dom/DocumentMarkerController.h"
25 #include "core/dom/Event.h" 25 #include "core/dom/Event.h"
26 #include "core/dom/EventNames.h" 26 #include "core/dom/EventNames.h"
27 #include "core/dom/StyleSheetCollections.h" 27 #include "core/dom/StyleEngine.h"
28 #include "core/dom/VisitedLinkState.h" 28 #include "core/dom/VisitedLinkState.h"
29 #include "core/editing/Caret.h" 29 #include "core/editing/Caret.h"
30 #include "core/history/BackForwardController.h" 30 #include "core/history/BackForwardController.h"
31 #include "core/history/HistoryItem.h" 31 #include "core/history/HistoryItem.h"
32 #include "core/inspector/InspectorController.h" 32 #include "core/inspector/InspectorController.h"
33 #include "core/inspector/InspectorInstrumentation.h" 33 #include "core/inspector/InspectorInstrumentation.h"
34 #include "core/loader/FrameLoader.h" 34 #include "core/loader/FrameLoader.h"
35 #include "core/loader/ProgressTracker.h" 35 #include "core/loader/ProgressTracker.h"
36 #include "core/page/AutoscrollController.h" 36 #include "core/page/AutoscrollController.h"
37 #include "core/page/Chrome.h" 37 #include "core/page/Chrome.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 if (url.protocolIsData() && url.string().startsWith("data:text/css;charset=u tf-8;base64,")) { 456 if (url.protocolIsData() && url.string().startsWith("data:text/css;charset=u tf-8;base64,")) {
457 m_didLoadUserStyleSheet = true; 457 m_didLoadUserStyleSheet = true;
458 458
459 Vector<char> styleSheetAsUTF8; 459 Vector<char> styleSheetAsUTF8;
460 if (base64Decode(decodeURLEscapeSequences(url.string().substring(35)), s tyleSheetAsUTF8, Base64IgnoreWhitespace)) 460 if (base64Decode(decodeURLEscapeSequences(url.string().substring(35)), s tyleSheetAsUTF8, Base64IgnoreWhitespace))
461 m_userStyleSheet = String::fromUTF8(styleSheetAsUTF8.data(), styleSh eetAsUTF8.size()); 461 m_userStyleSheet = String::fromUTF8(styleSheetAsUTF8.data(), styleSh eetAsUTF8.size());
462 } 462 }
463 463
464 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) { 464 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) {
465 if (frame->document()) 465 if (frame->document())
466 frame->document()->styleSheetCollections()->updatePageUserSheet(); 466 frame->document()->styleEngine()->updatePageUserSheet();
467 } 467 }
468 } 468 }
469 469
470 const String& Page::userStyleSheet() const 470 const String& Page::userStyleSheet() const
471 { 471 {
472 return m_userStyleSheet; 472 return m_userStyleSheet;
473 } 473 }
474 474
475 void Page::allVisitedStateChanged(PageGroup* group) 475 void Page::allVisitedStateChanged(PageGroup* group)
476 { 476 {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 , dragClient(0) 743 , dragClient(0)
744 , inspectorClient(0) 744 , inspectorClient(0)
745 { 745 {
746 } 746 }
747 747
748 Page::PageClients::~PageClients() 748 Page::PageClients::~PageClients()
749 { 749 {
750 } 750 }
751 751
752 } // namespace WebCore 752 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/page/PageGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698