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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2931563002: [LayoutNG] Implement 'text-align-last' (Closed)
Patch Set: Rebase Created 3 years, 6 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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 bool HasWillChangeCompositingHint() const; 2420 bool HasWillChangeCompositingHint() const;
2421 bool HasWillChangeOpacityHint() const { 2421 bool HasWillChangeOpacityHint() const {
2422 return WillChangeProperties().Contains(CSSPropertyOpacity); 2422 return WillChangeProperties().Contains(CSSPropertyOpacity);
2423 } 2423 }
2424 bool HasWillChangeTransformHint() const; 2424 bool HasWillChangeTransformHint() const;
2425 2425
2426 // Hyphen utility functions. 2426 // Hyphen utility functions.
2427 Hyphenation* GetHyphenation() const; 2427 Hyphenation* GetHyphenation() const;
2428 const AtomicString& HyphenString() const; 2428 const AtomicString& HyphenString() const;
2429 2429
2430 // text-align utility functions.
2431 using ComputedStyleBase::GetTextAlign;
2432 ETextAlign GetTextAlign(bool is_last_line) const;
2433
2430 // Line-height utility functions. 2434 // Line-height utility functions.
2431 const Length& SpecifiedLineHeight() const; 2435 const Length& SpecifiedLineHeight() const;
2432 int ComputedLineHeight() const; 2436 int ComputedLineHeight() const;
2433 LayoutUnit ComputedLineHeightAsFixed() const; 2437 LayoutUnit ComputedLineHeightAsFixed() const;
2434 2438
2435 // Width/height utility functions. 2439 // Width/height utility functions.
2436 const Length& LogicalWidth() const { 2440 const Length& LogicalWidth() const {
2437 return IsHorizontalWritingMode() ? Width() : Height(); 2441 return IsHorizontalWritingMode() ? Width() : Height();
2438 } 2442 }
2439 const Length& LogicalHeight() const { 2443 const Length& LogicalHeight() const {
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
3574 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3578 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3575 } 3579 }
3576 3580
3577 inline bool ComputedStyle::HasPseudoElementStyle() const { 3581 inline bool ComputedStyle::HasPseudoElementStyle() const {
3578 return PseudoBitsInternal() & kElementPseudoIdMask; 3582 return PseudoBitsInternal() & kElementPseudoIdMask;
3579 } 3583 }
3580 3584
3581 } // namespace blink 3585 } // namespace blink
3582 3586
3583 #endif // ComputedStyle_h 3587 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698