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

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

Issue 684383002: Delete a ton more dead vertical writing mode code. (Closed) Base URL: git@github.com:domokit/mojo.git@writingmode1
Patch Set: Created 6 years, 1 month 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione d(); } // absolute or fixed positioning 421 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione d(); } // absolute or fixed positioning
422 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re lative positioning 422 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re lative positioning
423 bool isPositioned() const { return m_bitfields.isPositioned(); } 423 bool isPositioned() const { return m_bitfields.isPositioned(); }
424 424
425 bool isText() const { return m_bitfields.isText(); } 425 bool isText() const { return m_bitfields.isText(); }
426 bool isBox() const { return m_bitfields.isBox(); } 426 bool isBox() const { return m_bitfields.isBox(); }
427 bool isInline() const { return m_bitfields.isInline(); } // inline object 427 bool isInline() const { return m_bitfields.isInline(); } // inline object
428 bool isDragging() const { return m_bitfields.isDragging(); } 428 bool isDragging() const { return m_bitfields.isDragging(); }
429 bool isReplaced() const { return m_bitfields.isReplaced(); } // a "replaced" element (see CSS) 429 bool isReplaced() const { return m_bitfields.isReplaced(); } // a "replaced" element (see CSS)
430 bool isHorizontalWritingMode() const { return m_bitfields.horizontalWritingM ode(); }
431 430
432 bool hasLayer() const { return m_bitfields.hasLayer(); } 431 bool hasLayer() const { return m_bitfields.hasLayer(); }
433 432
434 // "Box decoration background" includes all box decorations and backgrounds 433 // "Box decoration background" includes all box decorations and backgrounds
435 // that are painted as the background of the object. It includes borders, 434 // that are painted as the background of the object. It includes borders,
436 // box-shadows, background-color and background-image, etc. 435 // box-shadows, background-color and background-image, etc.
437 enum BoxDecorationBackgroundState { 436 enum BoxDecorationBackgroundState {
438 NoBoxDecorationBackground, 437 NoBoxDecorationBackground,
439 HasBoxDecorationBackgroundObscurationStatusInvalid, 438 HasBoxDecorationBackgroundObscurationStatusInvalid,
440 HasBoxDecorationBackgroundKnownToBeObscured, 439 HasBoxDecorationBackgroundKnownToBeObscured,
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 bool shouldCheckForPaintInvalidation(const PaintInvalidationState& paintInva lidationState) 894 bool shouldCheckForPaintInvalidation(const PaintInvalidationState& paintInva lidationState)
896 { 895 {
897 return paintInvalidationState.forceCheckForPaintInvalidation() || should CheckForPaintInvalidationRegardlessOfPaintInvalidationState(); 896 return paintInvalidationState.forceCheckForPaintInvalidation() || should CheckForPaintInvalidationRegardlessOfPaintInvalidationState();
898 } 897 }
899 898
900 bool shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() 899 bool shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState()
901 { 900 {
902 return layoutDidGetCalled() || mayNeedPaintInvalidation() || shouldDoFul lPaintInvalidation() || shouldDoFullPaintInvalidationIfSelfPaintingLayer(); 901 return layoutDidGetCalled() || mayNeedPaintInvalidation() || shouldDoFul lPaintInvalidation() || shouldDoFullPaintInvalidationIfSelfPaintingLayer();
903 } 902 }
904 903
905 bool supportsPaintInvalidationStateCachedOffsets() const { return !hasTransf orm() && !style()->isFlippedBlocksWritingMode(); } 904 bool supportsPaintInvalidationStateCachedOffsets() const { return !hasTransf orm(); }
906 905
907 void setNeedsOverflowRecalcAfterStyleChange(); 906 void setNeedsOverflowRecalcAfterStyleChange();
908 void markContainingBlocksForOverflowRecalc(); 907 void markContainingBlocksForOverflowRecalc();
909 908
910 // FIXME: This is temporary for cases that setShouldDoFullPaintInvalidation( true) doesn't work yet. 909 // FIXME: This is temporary for cases that setShouldDoFullPaintInvalidation( true) doesn't work yet.
911 void doNotUseInvalidatePaintForWholeRendererSynchronously() const { invalida tePaintForWholeRenderer(); } 910 void doNotUseInvalidatePaintForWholeRendererSynchronously() const { invalida tePaintForWholeRenderer(); }
912 911
913 protected: 912 protected:
914 // Overrides should call the superclass at the end. m_style will be 0 the fi rst time 913 // Overrides should call the superclass at the end. m_style will be 0 the fi rst time
915 // this function will be called. 914 // this function will be called.
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 void showTree(const blink::RenderObject*); 1339 void showTree(const blink::RenderObject*);
1341 void showLineTree(const blink::RenderObject*); 1340 void showLineTree(const blink::RenderObject*);
1342 void showRenderTree(const blink::RenderObject* object1); 1341 void showRenderTree(const blink::RenderObject* object1);
1343 // We don't make object2 an optional parameter so that showRenderTree 1342 // We don't make object2 an optional parameter so that showRenderTree
1344 // can be called from gdb easily. 1343 // can be called from gdb easily.
1345 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1344 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1346 1345
1347 #endif 1346 #endif
1348 1347
1349 #endif // RenderObject_h 1348 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLineBoxList.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698