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

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

Issue 239993011: Lazily generate HistoryItem's serialized form state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged to trunk Created 6 years, 8 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 | « no previous file | Source/core/dom/Document.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 class DOMSelection; 82 class DOMSelection;
83 class DOMWindow; 83 class DOMWindow;
84 class Database; 84 class Database;
85 class DatabaseThread; 85 class DatabaseThread;
86 class DocumentFragment; 86 class DocumentFragment;
87 class DocumentLifecycleNotifier; 87 class DocumentLifecycleNotifier;
88 class DocumentLifecycleObserver; 88 class DocumentLifecycleObserver;
89 class DocumentLoader; 89 class DocumentLoader;
90 class DocumentMarkerController; 90 class DocumentMarkerController;
91 class DocumentParser; 91 class DocumentParser;
92 class DocumentState;
92 class DocumentTimeline; 93 class DocumentTimeline;
93 class DocumentType; 94 class DocumentType;
94 class Element; 95 class Element;
95 class ElementDataCache; 96 class ElementDataCache;
96 class Event; 97 class Event;
97 class EventListener; 98 class EventListener;
98 class ExceptionState; 99 class ExceptionState;
99 class FastTextAutosizer; 100 class FastTextAutosizer;
100 class FloatQuad; 101 class FloatQuad;
101 class FloatRect; 102 class FloatRect;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 451
451 // FIXME: This should be eliminated and elements that use it should be made to 452 // FIXME: This should be eliminated and elements that use it should be made to
452 // always have a layer so they don't need to go about creating one from reas ons 453 // always have a layer so they don't need to go about creating one from reas ons
453 // external to style. 454 // external to style.
454 void scheduleLayerUpdate(Element&); 455 void scheduleLayerUpdate(Element&);
455 void unscheduleLayerUpdate(Element&); 456 void unscheduleLayerUpdate(Element&);
456 457
457 void evaluateMediaQueryList(); 458 void evaluateMediaQueryList();
458 459
459 FormController& formController(); 460 FormController& formController();
460 Vector<String> formElementsState() const; 461 DocumentState* formElementsState() const;
461 void setStateForNewFormElements(const Vector<String>&); 462 void setStateForNewFormElements(const Vector<String>&);
462 463
463 FrameView* view() const; // can be null 464 FrameView* view() const; // can be null
464 LocalFrame* frame() const { return m_frame; } // can be null 465 LocalFrame* frame() const { return m_frame; } // can be null
465 FrameHost* frameHost() const; // can be null 466 FrameHost* frameHost() const; // can be null
466 Page* page() const; // can be null 467 Page* page() const; // can be null
467 Settings* settings() const; // can be null 468 Settings* settings() const; // can be null
468 469
469 float devicePixelRatio() const; 470 float devicePixelRatio() const;
470 471
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 Loading, 605 Loading,
605 Interactive, 606 Interactive,
606 Complete 607 Complete
607 }; 608 };
608 void setReadyState(ReadyState); 609 void setReadyState(ReadyState);
609 bool isLoadCompleted(); 610 bool isLoadCompleted();
610 611
611 void setParsing(bool); 612 void setParsing(bool);
612 bool parsing() const { return m_isParsing; } 613 bool parsing() const { return m_isParsing; }
613 614
614 void setHistoryItemDocumentStateDirty(bool dirty) { m_historyItemDocumentSta teDirty = dirty; }
615 bool historyItemDocumentStateDirty() const { return m_historyItemDocumentSta teDirty; }
616
617 bool shouldScheduleLayout() const; 615 bool shouldScheduleLayout() const;
618 int elapsedTime() const; 616 int elapsedTime() const;
619 617
620 TextLinkColors& textLinkColors() { return m_textLinkColors; } 618 TextLinkColors& textLinkColors() { return m_textLinkColors; }
621 VisitedLinkState& visitedLinkState() const { return *m_visitedLinkState; } 619 VisitedLinkState& visitedLinkState() const { return *m_visitedLinkState; }
622 620
623 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&); 621 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&);
624 622
625 /* Newly proposed CSS3 mechanism for selecting alternate 623 /* Newly proposed CSS3 mechanism for selecting alternate
626 stylesheets using the DOM. May be subject to change as 624 stylesheets using the DOM. May be subject to change as
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 RefPtrWillBePersistent<StyleSheetList> m_styleSheetList; 1235 RefPtrWillBePersistent<StyleSheetList> m_styleSheetList;
1238 1236
1239 OwnPtr<FormController> m_formController; 1237 OwnPtr<FormController> m_formController;
1240 1238
1241 TextLinkColors m_textLinkColors; 1239 TextLinkColors m_textLinkColors;
1242 const OwnPtr<VisitedLinkState> m_visitedLinkState; 1240 const OwnPtr<VisitedLinkState> m_visitedLinkState;
1243 1241
1244 bool m_visuallyOrdered; 1242 bool m_visuallyOrdered;
1245 ReadyState m_readyState; 1243 ReadyState m_readyState;
1246 bool m_isParsing; 1244 bool m_isParsing;
1247 bool m_historyItemDocumentStateDirty;
1248 1245
1249 bool m_gotoAnchorNeededAfterStylesheetsLoad; 1246 bool m_gotoAnchorNeededAfterStylesheetsLoad;
1250 bool m_isDNSPrefetchEnabled; 1247 bool m_isDNSPrefetchEnabled;
1251 bool m_haveExplicitlyDisabledDNSPrefetch; 1248 bool m_haveExplicitlyDisabledDNSPrefetch;
1252 bool m_containsValidityStyleRules; 1249 bool m_containsValidityStyleRules;
1253 bool m_updateFocusAppearanceRestoresSelection; 1250 bool m_updateFocusAppearanceRestoresSelection;
1254 bool m_containsPlugins; 1251 bool m_containsPlugins;
1255 1252
1256 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter 1253 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter
1257 unsigned m_ignoreDestructiveWriteCount; 1254 unsigned m_ignoreDestructiveWriteCount;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 inline bool Node::isDocumentNode() const 1430 inline bool Node::isDocumentNode() const
1434 { 1431 {
1435 return this == document(); 1432 return this == document();
1436 } 1433 }
1437 1434
1438 Node* eventTargetNodeForDocument(Document*); 1435 Node* eventTargetNodeForDocument(Document*);
1439 1436
1440 } // namespace WebCore 1437 } // namespace WebCore
1441 1438
1442 #endif // Document_h 1439 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698