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

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

Issue 669803002: Optimize for horizontal writing mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // have been calculated on the fly (without associating it with the actual e lement) somewhere. 775 // have been calculated on the fly (without associating it with the actual e lement) somewhere.
776 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const; 776 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const;
777 777
778 DocumentMarkerController& markers() const { return *m_markers; } 778 DocumentMarkerController& markers() const { return *m_markers; }
779 779
780 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument Element; } 780 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument Element; }
781 bool writingModeSetOnDocumentElement() const { return m_writingModeSetOnDocu mentElement; } 781 bool writingModeSetOnDocumentElement() const { return m_writingModeSetOnDocu mentElement; }
782 void setDirectionSetOnDocumentElement(bool b) { m_directionSetOnDocumentElem ent = b; } 782 void setDirectionSetOnDocumentElement(bool b) { m_directionSetOnDocumentElem ent = b; }
783 void setWritingModeSetOnDocumentElement(bool b) { m_writingModeSetOnDocument Element = b; } 783 void setWritingModeSetOnDocumentElement(bool b) { m_writingModeSetOnDocument Element = b; }
784 784
785 bool hasVerticalWritingMode() const { return m_hasVerticalWritingMode; }
pdr. 2014/10/21 22:11:26 Would we still see the perf benefit if we moved th
eae 2014/10/21 22:21:46 The effect of the UNLIKELY macro is minimal, it di
786 void setHasVerticalWritingMode(bool b) { m_hasVerticalWritingMode = b; }
787
785 bool execCommand(const String& command, bool userInterface = false, const St ring& value = String()); 788 bool execCommand(const String& command, bool userInterface = false, const St ring& value = String());
786 bool queryCommandEnabled(const String& command); 789 bool queryCommandEnabled(const String& command);
787 bool queryCommandIndeterm(const String& command); 790 bool queryCommandIndeterm(const String& command);
788 bool queryCommandState(const String& command); 791 bool queryCommandState(const String& command);
789 bool queryCommandSupported(const String& command); 792 bool queryCommandSupported(const String& command);
790 String queryCommandValue(const String& command); 793 String queryCommandValue(const String& command);
791 794
792 KURL openSearchDescriptionURL(); 795 KURL openSearchDescriptionURL();
793 796
794 // designMode support 797 // designMode support
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 1327
1325 ViewportDescription m_viewportDescription; 1328 ViewportDescription m_viewportDescription;
1326 ViewportDescription m_legacyViewportDescription; 1329 ViewportDescription m_legacyViewportDescription;
1327 Length m_viewportDefaultMinWidth; 1330 Length m_viewportDefaultMinWidth;
1328 1331
1329 bool m_didSetReferrerPolicy; 1332 bool m_didSetReferrerPolicy;
1330 ReferrerPolicy m_referrerPolicy; 1333 ReferrerPolicy m_referrerPolicy;
1331 1334
1332 bool m_directionSetOnDocumentElement; 1335 bool m_directionSetOnDocumentElement;
1333 bool m_writingModeSetOnDocumentElement; 1336 bool m_writingModeSetOnDocumentElement;
1337 bool m_hasVerticalWritingMode;
1334 DocumentTiming m_documentTiming; 1338 DocumentTiming m_documentTiming;
1335 RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher; 1339 RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher;
1336 bool m_writeRecursionIsTooDeep; 1340 bool m_writeRecursionIsTooDeep;
1337 unsigned m_writeRecursionDepth; 1341 unsigned m_writeRecursionDepth;
1338 1342
1339 RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationControlle r; 1343 RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationControlle r;
1340 OwnPtr<MainThreadTaskRunner> m_taskRunner; 1344 OwnPtr<MainThreadTaskRunner> m_taskRunner;
1341 OwnPtrWillBeMember<TextAutosizer> m_textAutosizer; 1345 OwnPtrWillBeMember<TextAutosizer> m_textAutosizer;
1342 1346
1343 RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext; 1347 RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 Node* eventTargetNodeForDocument(Document*); 1415 Node* eventTargetNodeForDocument(Document*);
1412 1416
1413 } // namespace blink 1417 } // namespace blink
1414 1418
1415 #ifndef NDEBUG 1419 #ifndef NDEBUG
1416 // Outside the WebCore namespace for ease of invocation from gdb. 1420 // Outside the WebCore namespace for ease of invocation from gdb.
1417 void showLiveDocumentInstances(); 1421 void showLiveDocumentInstances();
1418 #endif 1422 #endif
1419 1423
1420 #endif // Document_h 1424 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698