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

Side by Side Diff: sky/engine/core/rendering/style/RenderStyle.h

Issue 944073006: Remove the concept of staticly positioned absolutes. (Closed) Base URL: git@github.com:domokit/mojo.git@position
Patch Set: Created 5 years, 10 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) 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 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // Accessors for positioned object edges that take into account writing mode . 362 // Accessors for positioned object edges that take into account writing mode .
363 const Length& logicalLeft() const { return surround->offset.logicalLeft(); } 363 const Length& logicalLeft() const { return surround->offset.logicalLeft(); }
364 const Length& logicalRight() const { return surround->offset.logicalRight(); } 364 const Length& logicalRight() const { return surround->offset.logicalRight(); }
365 const Length& logicalTop() const { return surround->offset.before(); } 365 const Length& logicalTop() const { return surround->offset.before(); }
366 const Length& logicalBottom() const { return surround->offset.after(); } 366 const Length& logicalBottom() const { return surround->offset.after(); }
367 367
368 // Whether or not a positioned element requires normal flow x/y to be comput ed 368 // Whether or not a positioned element requires normal flow x/y to be comput ed
369 // to determine its position. 369 // to determine its position.
370 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto( ); } 370 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto( ); }
371 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto( ); } 371 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto( ); }
372 bool hasStaticInlinePosition() const { return hasAutoLeftAndRight(); }
373 bool hasStaticBlockPosition() const { return hasAutoTopAndBottom(); }
374 372
375 EPosition position() const { return static_cast<EPosition>(noninherited_flag s.position); } 373 EPosition position() const { return static_cast<EPosition>(noninherited_flag s.position); }
376 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; } 374 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; }
377 // FIXME(sky): Remove 375 // FIXME(sky): Remove
378 bool hasInFlowPosition() const { return false; } 376 bool hasInFlowPosition() const { return false; }
379 377
380 const Length& width() const { return m_box->width(); } 378 const Length& width() const { return m_box->width(); }
381 const Length& height() const { return m_box->height(); } 379 const Length& height() const { return m_box->height(); }
382 const Length& minWidth() const { return m_box->minWidth(); } 380 const Length& minWidth() const { return m_box->minWidth(); }
383 const Length& maxWidth() const { return m_box->maxWidth(); } 381 const Length& maxWidth() const { return m_box->maxWidth(); }
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 1303
1306 rareInheritedData.access()->m_textOrientation = textOrientation; 1304 rareInheritedData.access()->m_textOrientation = textOrientation;
1307 return true; 1305 return true;
1308 } 1306 }
1309 1307
1310 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1308 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1311 1309
1312 } // namespace blink 1310 } // namespace blink
1313 1311
1314 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ 1312 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698